Tagged: geodirectory, masonry
Hi, thanks for making this theme. I’m trying to insert some data from a custom post type created by GeoDirectory into the theme’s masonry_entries.php
The GeoD devs suggested:
$post_details = geodir_get_post_info($post_id);
I know it’s somewhere near line 598 but where/how to wire it in so that it displays as $items?
Appreciate the attention!
Hey jimmymoto!
Try this.
$items .= geodir_get_post_info($entry['ID']);
Best regards,
Elliott
Thanks for the reply. Looks like we’re on the right track. When i put your suggestion on line 598 however, it removes the excerpt and displays just the number ‘0’ under the post title.
Any clue why?
Hi!
I would try adding it right above line 598.
}
$items .= geodir_get_post_info($entry['ID']);
$items .= $text_after."</div></figcaption>";
}
If it’s still not working then it would be best to contact the plugin authors for more information.
Cheers!
Elliott
Still trying to sort this. Found a similar inquiry but using
$this->loop[$key]['address'] = geodir_get_post_info($id);
and
$items .= $address;
isn’t catching.
https://kriesi.at/support/topic/masonry_entries-php-get-custom-field-value-or-content/
Hey!
It’s most likely not how the plugin function is meant to be used. I would try contacting the plugin author and check with him to see how best to use it.
Cheers!
Elliott