Title: custom meta fields
Last modified: August 18, 2016

---

# custom meta fields

 *  [pascaletrangmailcom](https://wordpress.org/support/users/pascaletrangmailcom/)
 * (@pascaletrangmailcom)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/custom-meta-fields/)
 * this is probably a really simple question buti can’t seem to get it to work as
   i’m not that familiar with php.
 * i have three custom fields that i want to display the values of but not the keys.
   the three keys are date, artist and description. the values would display on 
   the single post page only.
    i was trying to use <?php get_post_custom_values();?
   > but nothng is showing up.
 * when is use <?php the_meta(); ?> the keys and the values both show up but i don’t
   want the keys.
 * can someone tell me what the write code is that i should be dropping into my 
   single.php template? sorry am such a programming retard..

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 2 months ago](https://wordpress.org/support/topic/custom-meta-fields/#post-525988)
 * Like this?
 *     ```
       <?php
       echo get_post_custom_values('date');
       echo get_post_custom_values('artist');
       echo get_post_custom_values('description');
       ?>
       ```
   
 * Or perhaps this?
 *     ```
       <?php
       echo get_post_meta($post->ID, 'date', true);
       echo get_post_meta($post->ID, 'artist', true);
       echo get_post_meta($post->ID, 'description', true);
       ?>
       ```
   
 * How you do it depends on what you’re doing. Might want to read up here:
    [http://codex.wordpress.org/Using_Custom_Fields](http://codex.wordpress.org/Using_Custom_Fields)
 *  Thread Starter [pascaletrangmailcom](https://wordpress.org/support/users/pascaletrangmailcom/)
 * (@pascaletrangmailcom)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/custom-meta-fields/#post-525994)
 * perfect.. thank you so much!

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

The topic ‘custom meta fields’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [keys](https://wordpress.org/support/topic-tag/keys/)
 * [the_meta()](https://wordpress.org/support/topic-tag/the_meta/)
 * [values](https://wordpress.org/support/topic-tag/values/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [pascaletrangmailcom](https://wordpress.org/support/users/pascaletrangmailcom/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/custom-meta-fields/#post-525994)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
