Title: [Plugin: WordPress Popular Posts] When using thumbnails there are two  links invalidly nested.
Last modified: August 19, 2016

---

# [Plugin: WordPress Popular Posts] When using thumbnails there are two links invalidly nested.

 *  [LachlanM](https://wordpress.org/support/users/lachlanm/)
 * (@lachlanm)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-when-using-thumbnails-there-are-two-links-invalidly-nested/)
 * Hi,
    Thanks for a great plugin. I may have found a minor issue, when I use the
   thumbnails option each popular post and thumb has an invalidly nested double 
   A tag.
 * The thumbs are wrapped in an A link, but each list item is also linked – the 
   source shows that the plugin generates an A tag within another A tag.
    You can
   see an example of this [here](http://i.padaccessories.info/), on the right hand
   side below banner.
 * Here is the validation error:
    [http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fi.padaccessories.info%2F](http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fi.padaccessories.info%2F)
 * An example from source code is below, without spending too much time you can 
   see the double closing A tags at end:
 * `<a href="http://i.padaccessories.info/crumpler-the-moderate-embarrassment-ipad-
   bag/" title="Crumpler The Moderate Embarrassment iPad Bag"><a href="http://i.
   padaccessories.info/crumpler-the-moderate-embarrassment-ipad-bag/" title="Crumpler
   The Moderate Embarrassment iPad Bag"><img width="50" height="50" src="http://
   d197nnwxqnw8jl.cloudfront.net/wp-content/uploads/2010/09/Crumpler-iPad-messenger-
   Bag-150x150.jpg" class="wpp-thumbnail wp-post-image" alt="Crumpler The Moderate
   Embarrassment iPad Bag" title="Crumpler The Moderate Embarrassment iPad Bag" /
   ></a></a>`
 * Many thanks for any help with this.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [LachlanM](https://wordpress.org/support/users/lachlanm/)
 * (@lachlanm)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-when-using-thumbnails-there-are-two-links-invalidly-nested/#post-1681255)
 * update – actually I have just realised this could be because of the way post 
   thumbnails is implemented in the theme… I’m investigating and will update again.
 *  Thread Starter [LachlanM](https://wordpress.org/support/users/lachlanm/)
 * (@lachlanm)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-when-using-thumbnails-there-are-two-links-invalidly-nested/#post-1681268)
 * Update – THERE IS NO BUG
 * I found some code in my functions.php that was adding an anchor to all thumbnails
   generated by:
    `<?php add_theme_support('post-thumbnails');`
 * With this removed I no longer have the double anchor issue.
 * Thanks for an awesome plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WordPress Popular Posts] When using thumbnails there are two
links invalidly nested.’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [LachlanM](https://wordpress.org/support/users/lachlanm/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-when-using-thumbnails-there-are-two-links-invalidly-nested/#post-1681268)
 * Status: not resolved