This is the 2nd or 3rd time I’ve looked for a solution to the WordPress issue that it strips HTML out of image captions, removing any links you might have included. I finally found an answer, and it seems to work great: yes another plugin. Links in Captions allows you to add link code like this to image captions: {link url=”http://www.example.com”}Anchor text here{/link} and it renders them as normal text links!

Update: this has been fixed in WordPress core. You can now do this the way you would expect, just add an “<a href=” HTML tag into the caption around the text you want to link.

Pat Dumond

Admin ajax
Copy link