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

Im running 'the loop' and I want to get the image of the post (in original size - not thumbnail), how do I do it?

thank you.

share|improve this question
the "Featured Image"? or an image within the post? – goldenapples Jan 24 '11 at 21:29

The function the_post_thumbnail() grabs the featured image for you. You can specify the full size image like this, I think: the_post_thumbnail('full')

share|improve this answer

Hi @Luis:

WordPress' image handling is tricky, and inconsistent in the edge cases so this may or may not be what you are looking for but I think what you want is this:


That will give you the URL of the attached file in it's full size, but if that doesn't give you what you need I'll need you do give me more information about which images you are talking about; Featured, in the Media section, in your posts, etc? Screenshots of your admin where you enter photos will help too.

share|improve this answer

You have a lot of ways to get_attachments,


wp_get_attachment_link($id=0, $size='full', $permalink=false, $icon=false); 

Here is a complete list of get_attachment possibilities,

share|improve this answer

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.