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
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!
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
http://digwp.com/2009/08/awesome-image- ... wordpress/
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!