Title: Quick Custom Fields Question
Last modified: August 18, 2016

---

# Quick Custom Fields Question

 *  [sumeetjain](https://wordpress.org/support/users/sumeetjain/)
 * (@sumeetjain)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/)
 * I would like to output the value of a custom field in my post. That field is 
   called “vid_a” and its value is “something.swf”. I don’t want a list or anything…
   Just a simple raw output of the value.
 * I’ve been trying to do this for WEEKS. I began with the function listed in the
   Codex: get_post_meta.
 * But I must be using it wrong, because it doesn’t output anything. Any help would
   be appreciated. The more specific you can be – actual code would be excellent–
   the more it will help me. Thanks so much for taking the time.
 * Sumeet

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

 *  [amory](https://wordpress.org/support/users/amory/)
 * (@amory)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260129)
 * Try this (examle code within readme file)
    [http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/](http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/)
 *  Thread Starter [sumeetjain](https://wordpress.org/support/users/sumeetjain/)
 * (@sumeetjain)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260130)
 * I just tried that before posting. It creates a lot of “cannot-modify-header” 
   errors.
 * Isn’t there a way to do this without a plugin?
 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260138)
 * Just use
    `<?php echo get_post_meta($post->ID, 'vid_a', true); ?>`
 * get_post_meta just retrieves the value. To output it, you’ll need to echo the
   value returned.
 * BTW, as an aside, “cannot-modify-header” errors are usually due to extraneous
   whitespace.
 *  Thread Starter [sumeetjain](https://wordpress.org/support/users/sumeetjain/)
 * (@sumeetjain)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260140)
 * You’d better watch out, because if I ever find you I might not be able to control
   myself from giving you a series of embarrassing but curiously refreshing hugs.
 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260141)
 * “You’d better watch out, because if I ever find you I might not be able to control
   myself from giving you a series of embarrassing but curiously refreshing hugs.”
   
   Erm, thanks?:)

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

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

## Tags

 * [add](https://wordpress.org/support/topic-tag/add/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [output](https://wordpress.org/support/topic-tag/output/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [ifelse](https://wordpress.org/support/users/ifelse/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/quick-custom-fields-question/#post-260141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
