I am using the standard WordPress image block within a Toolset View Loop. I want to set the alternative text of the image to the alternative text as entered in the media library. If I don't configure the alternative text, the alt attribute is rendered empty. If I select the alternative text to pull from a dynamic source, it does not list the option I need. I can set it to use the image URL as the alt text, for example, but that does not make sense 🙂
From my testing locally with the default wordpress image block, you do have the options to use standard wordpress fields as well as custom fields for the alternative text. See Screenshot
Is there a particular field that you're not seeing that you want to use ?
Yes indeed, but I cannot find the option to assign the actual alt text of the image to the alt text of the image block (that's more or less the default one would want there I guess). Please see my attached screenshot: I can select the URL but not the alt text. I'd expect "Featured image alt text" to be listed there as well. Not setting anything results in an empty alt attribute. Am I missing something?
Unfortunately the image attributes aren't available as dynamic sources to be used as ALT text. A workaround to this is that you can create a custom field to hold your image ALT text and then assign this as the dynamic source for the image.
Thanks for clearing that up. The work around will work but it's doubling the work of editors so for now I'll probably leave the alt rendered empty. Do you expect the alt to become available as a dynamic source in the future? Is this a WordPress limitation or could the Toolset team implement this if they wanted to?
I believe this is a limitation of wordpress. However what you can do is to submit a feature request so that our developers can review to see if this is something that can be added.