WordPress can act up when you try to create hyperlinks inside of featured image captions as a result of the built-in editor which is designed to strip HTML tags. One way of getting around this stumbling block is to define your anchor’s href attribute using single quotes (‘) instead of double quotes (“).

Example

// Use single quotes instead of double quotes
<a href="url">Link text</a>