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.

Related posts

Leave a Reply

3 comments

  1. 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:

    wp_get_attachment_url($post->ID);
    

    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.