Title: Custom Fields
Last modified: August 19, 2016

---

# Custom Fields

 *  Resolved [imhameed78](https://wordpress.org/support/users/imhameed78/)
 * (@imhameed78)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-31/)
 * hi,
    I have used few custom fields with my post like product brand, product price
   etc. now i wanna print the product price along with the product name (post name)
   on the top of the post page i.e. alonwith the title. i have ammended my single.
   php in this way, but it just shows the post title, i can’t see the price.
 * <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h2 class=”title”> 
   <?php the_title(); **get_post_meta(get_the_ID, ‘price’, true);** ?> </h2>
 * i have used **$post->ID and get_the_ID()** as well for post_ID.
 * don’t know wht is missing.
    regards

Viewing 1 replies (of 1 total)

 *  Thread Starter [imhameed78](https://wordpress.org/support/users/imhameed78/)
 * (@imhameed78)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-31/#post-1754864)
 * got it, echo…………..

Viewing 1 replies (of 1 total)

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

## Tags

 * [custome fields](https://wordpress.org/support/topic-tag/custome-fields/)
 * [post meta data](https://wordpress.org/support/topic-tag/post-meta-data/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 1 participant
 * Last reply from: [imhameed78](https://wordpress.org/support/users/imhameed78/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/custom-fields-31/#post-1754864)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
