I’m building a site for art historians. For each image that’s embedded in a page or post, I’d like to automatically display metadata about that image as a caption below the image.
I’ve used ACF Pro to create custom fields for the metadata I’d like to display (artist name, medium, year etc.) and that field group appears on each Media post (that is, anything in the media library).
Now I’m using Cornerstone to build a page, and would like to add an Image element, and have the metadata (if populated) appear beneath it automatically.
How do I accomplish that? Is there a way with Global Blocks?
I haven’t had luck with the various Dynamic Content text options, because they pull in metadata from the parent page I’m editing, and not from the image I’m embedding within the page. Is there a way to define the scope of a dynamic content field so that it pulls from the image, and not the page?
I’ve also made an attempt with Loopers, which certainly can pull in a single post—for example, if I use a Portfolio Item as the atomic image unit instead of a Media item, in which case I can set up the Looper Provider to query Portfolio Items and set the count to 1, then create a Looper Consumer that pulls in the Portfolio Item’s featured image and title (for example). But in that case, I don’t know how to allow the user to manually select a particular portfolio item in the Consumer to embed. The Looper Consumer will always just pull in the most recent Portfolio Item.
I see a feature called “Components” in Beta that might do the trick, is that possible?