Special purpose photos with each post

How would I grab a photo, that has been added to a post, and use it elsewhere on a site when there have been several photos added to the post? For example, my site has a blog (WordPress) and a non-blog section. I want to pull one image from my latest post for use in this non-blog section. Keep in mind that there might be multiple photos associated with the post.

The trick to me seems to be how to designate one specific photo of however many are associated with a post as “the photo” that will be used in the non-blog portion of the site. Ideas? Suggestions?

Related posts

Leave a Reply

1 comment

  1. Well one photo can be assigned as the thumbnail as you can see in the post editor screen. Otherwise as the comment above suggested create a post meta field for example ‘my_post_image’ and place the id of the image attachment in that field. That is how WordPress saves the post thumbnail (look in the database, something like _post_thumbnail is the meta field name).