I have a custom image field connected to a custom post type, artwork. How can I use the Toolset interface to extract and output metadata related to the image?
For example, let's say I upload a file named screenshot.png, and in the Media Library I add a Title ("Finder Screenshot"), Caption ("Finder Screenshot with special information"), and Description ("This is a Finder Screenshot with some special information").
If I want to display the image and the three pieces of metadata on the singular artwork page, how do I do that? And can I do that using PHP code, too?
To get this clear, your images will be assigned to One image per post correct?
If so then I would recommend that you use the Post title as the title of the image and the post body as the description of the image as it will be a little more difficult to display these meta items from the images itself.
Thanks for your response. Each post will have multiple images associated with a given post, so I'm going to need to travel the more difficult path. Am I going to have to use wp_get_attachment_image() and other WP PHP functions?
Perhaps it comes down to where I want the metadata to live. What I like about keeping it in the media library is that it's directly connected to the image. With your solution, a user can change the image and fail to update the additional fields.
I suppose it would be important to tightly couple the metadata if the image appeared in multiple places and identical information needed to be displayed in each location. I don't think that's the case here.