So I’m a bit confused. If I were to use the get_the_tags function I’d have to make the call and all, so I don’t know if it would work at all anyway. Does anyone have an idea of what could be done here? Thank you very much in advance! –dubsnipe
The problem is the_tags outputs the tag names surrounded by anchor tags, which I’m guessing then break out of the alt tag.
As to a solution, off the top of my head, you could output the tags to an array in the header, strip the anchor tags, then output this array into your alt text. May not be the best way to do it though.