A very common support issue on the EDD forums is “Why do my download titles look like this?”. Customers are referring to the strange HTML markup that appears in the product’s titles. Here’s an example of what it can look like:
My Download”>My Download
The reason why this is happening is pretty simple. EDD uses Microdata in the product titles, which wraps the title in some special markup. This exposes an issue within the customer’s WordPress theme where the the_title() function has been incorrectly used in the anchor link’s title attribute. If you want to read more about, check out this in-depth article by Pippin Williamson on the_title() vs the_title_attribute().
To fix the issue you’ll need to first find the template file that is responsible for outputting your download’s title. This is usually single.php but sometimes can include another file such as content-single.php, or content.php. You’ll have to do some digging around as each theme can be entirely different.
Next, find the anchor tag which may look something like this:
<a title="<?php the_title(); ?>" href="..."> ... </a>
And simply change it to:
<a title="<?php the_title_attribute(); ?>" href="..."> ... </a>