WordPress.org

Support

Support » Plugins and Hacks » WordPress Popular Posts » [Plugin: WordPress Popular Posts] When using thumbnails there are two links invalidly nested.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.
Skip to toolbar