- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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
As much as I like a solid LMGTFY, that was a VERY specific search!
Check out this stuff as well:
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!