Closed trewknowledge closed 13 years ago
To answer my own question...
I removed my custom query (query_posts('post_type=CPTNAME&post_status=publish&posts_per_page=-1');) and instead of using $post->ID within get_post_meta I used get_the_ID()
Cheers!
Hello,
So I am using Geo Mashup Search and the search results are for a Custom Post Type.
Everything is working fine except for when I want to display some custom meta information ( echo get_post_meta($post->ID, "_address", true); ).
I have tried using a custom query before the loop such as :
query_posts('post_type=CPTNAME&post_status=publish&posts_per_page=-1');
however this doesn't seem to be working.
Any suggestions?