Title: get_post_meta problem
Last modified: August 19, 2016

---

# get_post_meta problem

 *  [dougyitbos](https://wordpress.org/support/users/dougyitbos/)
 * (@dougyitbos)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/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=confused
 * Here’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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dougyitbos](https://wordpress.org/support/users/dougyitbos/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/get_post_meta-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
