get the image of the post

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.

Solutions Collecting From Web of "get the image of the post"

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

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.

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,