irth orbits

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Add custom post info to Enfold's masonry template #22990

    irth orbits
    Free User
    Post count: 7

    Thanks, I would want to use whichever wordpress call works. I also tried get_post and a few others without luck. is there a special $context that I would need to set?

    in reply to: Add custom post info to Enfold's masonry template #22925

    irth orbits
    Free User
    Post count: 7

    If it helps I found this brief but closed support topic. could you just tell me what needs to be swapped in for Geo Dir? thx

    http://www.kriesi.at/support/topic/masonry_entries-php-get-custom-field-value-or-content/

    in reply to: Add custom post info to Enfold's masonry template #22923

    irth orbits
    Free User
    Post count: 7

    Thanks haven’t quite got it yet. Trying to display the address, I’m using the following code

    
    
    				
    $this->loop[$key]['geo_loc'] = get_field( "geodir_show_listing_info" , $id );
    

    then in the html I call

    {$geo_loc}

    What am I missing?

    in reply to: Add custom post info to Enfold's masonry template #22807

    irth orbits
    Free User
    Post count: 7

    Thanks Paolo. I understand a little better and I don’t think the filtering is an issue at this point.

    I still don’t understand how to get geoD data to display in the masonry element. For example, I’m trying to display a business address so copy the code:

    
    
    function geodir_detail_page_more_info()
                            {
                            	global $post,$preview,$post_images;
                            	ob_start() ; // Start  buffering;
                            	do_action('geodir_before_detail_page_more_info') ;
                            	if($geodir_post_detail_fields = geodir_show_listing_info()){
                            		echo $geodir_post_detail_fields;
                            	}
                            	do_action('geodir_after_detail_page_more_info') ;
    
                            	$content_html = ob_get_clean();
                            	if(trim($content_html) != '')
                            		$content_html  = '<div class="geodir-company_info geodir-details-sidebar-listing-info">' . $content_html . '</div>' ;
                            	echo $content_html = apply_filters('geodir_detail_page_more_info_html' , $content_html) ;
                            }

    from geodirectory_hooks_actions.php and drop in the masonry_entries.php and add {$content_html} right next to {$content} in $items

    I don’t know php so I’m just hacking away. Am I overthinking this? Linked is a visual of desired outcome. Thx for the assistance.

    in reply to: Add custom post info to Enfold's masonry template #22767

    irth orbits
    Free User
    Post count: 7

    Please correct me if I’m wrong, but doesn’t your plugin register global hooks that can be used willy nilly wherever we want?

Viewing 5 posts - 1 through 5 (of 5 total)