This may be a feature request, but I'm asking on the off chance there's a way to do this...
In the documentation for wpv-post-featured-image, for the attribute "output" you have the optional value of "alt" (as well as many other helpful bits, like caption, description, date)...
Is there something something similar for a custom field - image?
But is there another way to individually output the meta data associated with an image without the image?
Hope you have an answer. If this isn't a feature, it needs to be. I'm sure there's more to it, but it makes no sense to have that available for a featured image and not custom images.
Hello and thank you for contacting the Toolset support.
As you may know, when you add an image to WordPress you can customize its title, description, and alt text in the native media library manager. These pieces of information can then be used by passing placeholders to the shortcode:
[types field='nav-img' alt='%%ALT%%'][/types]
But, I understood that you want to pull the alt text from a custom field of the parent post, right?
In that case, for a custom field "image-alt" you need to do:
Please note that "output='alt'" is only available for the wpv-post-featured-image shortcode that displays the featured image of a post instead of an image that came from a custom field.
Does it make sense?
Otherwise, please provide a concrete example(post, fields, image, etc.) and let me try a test on my local installation.
Even if you could make them both repeating groups, with two 'wpv-for-each' working together, an inexperienced user would easily let them get out of sync. As a solution, that seems terribly limited.
Please note that "output='alt'" is only available for the wpv-post-featured-image shortcode that displays the featured image of a post instead of an image that came from a custom field.
Okay, but why is it only available for a featured image of a post? The individual export of meta data for any wordpress image should be a no-brainer, and a very simple feature to implement. It would work almost the exact same as with a featured image, no? output='alt' or perhaps output='%%ALT%%', as well as the many other pieces, like output='caption', output='date', output='author'
At this point if it needs to be considered a featured request you can mark this closed.
I'll escalate this to our 2nd Tier as a feature request. It will be evaluated and hopefully will make it to the developer's list.
In the meantime, I built a custom shortcode that pulls the information from the image of the custom field. It is not suited for repeatable image fields, but it explains how we can get those pieces of information from the image.