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.
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.
You must be logged in to post a comment.
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')
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,
Here is a complete list of
get_attachment
possibilities,http://digwp.com/2009/08/awesome-image-attachment-recipes-for-wordpress/