I’m using a custom layout, built in cornerstone, for blog posts. It’s easy for me to set the featured image by assigning it as {{dc:post:featured_image}} however I’ve not been able to figure out how to assign the image the featured image alt text dynamically.
In this documentation on loopers it suggests using the following for the featured image alt text:
“Featured image for
{{dc:post:title}}
” for thealt
text.
That won’t work for me though as I need it to be the actual alt text for the post’s featured image.
So my two questions are:
-
What is the meta label of the featured image alt text so I can pull it similar to {{dc:post:featured_image}}?
-
How could I have figured out the name of the featured image alt text on my own? I can find things like “featured_image” easily enough using the provided options when clicking on the dynamic content links, but even then it’s mostly just trial and error/guess-work. Is there a list somewhere or a methodology I could use in the browser inspector to figure it out?