WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have added Custom Fields to the Media Uploader in WP3.5. I am unsure of how to have that data displayed on the Attachment page.

share|improve this question

There are a few different ways to get your values. One way is in the loop and another way is outside the loop. Here is a short code snippet that can be used to get them outside the loop

 ( untested )
   global $wp_query;
   $postid = $wp_query->post->ID;
   echo get_post_meta($postid, 'customField', true);

You will want to change the 'customField' in the last line above to the name of your custom field

You might also read up in the codex http://codex.wordpress.org/Custom_Fields

Here is another good source for you to look over http://vandelaydesign.com/blog/wordpress/custom-fields/

I would also try googling for some results on how to display them. There are tons of articles out there that will answer your question much faster than waiting for a response.

share|improve this answer
Thanks for your response Jamie – vPolite Mar 6 '13 at 22:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.