WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[Plugin: WordPress Popular Posts] When using thumbnails there are two links invalidly nested. (3 posts)

  1. LachlanM
    Member
    Posted 3 years ago #

    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, 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

    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.

  2. LachlanM
    Member
    Posted 3 years ago #

    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.

  3. LachlanM
    Member
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic