get_post_meta problem
-
HI foks –
So I’m using get_post_meta to show some custom fields.
It’s working like a champ on the single post page.
But…
When I’m showing more than one result (the user wants to browse a category for example) the custom field is not rendered.
I’m clearly still in the loop… me=confusedHere’s the code:
Job Code: <?php $key="Job_Code"; echo get_post_meta($post->ID, $key, true); ?>Same code in both the single post template and the main index which is used when browsing a cat.
Any ideas?
The topic ‘get_post_meta problem’ is closed to new replies.