irth orbits
Forum Replies Created
-
AuthorPosts
-
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?
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/
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?
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.
Please correct me if I’m wrong, but doesn’t your plugin register global hooks that can be used willy nilly wherever we want?
-
AuthorPosts