Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [WP] Get the post’s image

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26132
    calebkester
    Member

    I’ve been trying to find out how to do this without using a special function that somebody wrote. My problem is that on the main page I want to grab the post’s image and specify a size (thumbnail in one place, large photo in the other). I thought that wp_get_attachment_image() might do the trick but I’m not having any luck with it.

    Any help on what function I use to grab the post’s image?

    Here’s the site that I’m working on: http://beacon.nwciowa.edu

    #64200
    ikthius
    Member
    #64206
    TheDoc
    Member

    As much as I like a solid LMGTFY, that was a VERY specific search!

    #64208
    Chris Coyier
    Keymaster
    #64255
    calebkester
    Member
    "chriscoyier" wrote:

    Thanks Chris! Just what I was looking for. I found everything I ever needed to know about attachments but didn’t realize you needed a query to get the ID of the attachment.
    Can’t wait for your book!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.