Title: Custom Fields &#8211; Help!
Last modified: August 19, 2016

---

# Custom Fields – Help!

 *  [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/)
 * I am using my WP as a product database. I have create several custom fields. 
   On my main page: [http://azfans.com/store](http://azfans.com/store) I want to
   show the Price of the item. I have created a custom field called “price”. How
   do I insert this data into my page?
 * Thanks for the help!
 * Jon

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/#post-852097)
 * I found this: $readinglist = $post_meta_cache[256][‘reading’];
 * on [http://codex.wordpress.org/Using_Custom_Fields](http://codex.wordpress.org/Using_Custom_Fields)
   but don’t quite understand it.
 * Where do the php tags go? For me would it be:
    $price = $post_meta_cache[$post-
   >ID][‘price’]
 * Please advise. I’m just trying to display the Price from my custom “price” field.
 * Thanks,
 * Jon
 *  Thread Starter [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/#post-852099)
 * I tried this:
 * <?php $key=”price”; echo get_post_meta($post->ID, $key, true); ?>
 * but it doesn’t seem to work!
 *  [Dgold](https://wordpress.org/support/users/dgold/)
 * (@dgold)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/#post-852102)
 * Try the plugin Get Custom Field Values
 * It just makes it easier, and explains a simple line of plugin-code to put in
 * [http://wordpress.org/extend/plugins/get-custom-field-values/](http://wordpress.org/extend/plugins/get-custom-field-values/)
 * also read
    [http://coffee2code.com/wp-plugins/get-custom-field-values/](http://coffee2code.com/wp-plugins/get-custom-field-values/)
 * If you’d be ok with showing ALL your custom fields on that post (not just “price”
   but also “color” or whatever), try the_meta template tag:
 * `<?php the_meta(); ?>`
    [http://codex.wordpress.org/Template_Tags/the_meta](http://codex.wordpress.org/Template_Tags/the_meta)
 * Hope this helps!
 *  Thread Starter [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/#post-852342)
 * Actually, it was a simple oversight, I forgot to capitalize “Price”.
 * Thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Fields – Help!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/custom-fields-help-1/#post-852342)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
