WordPress Popular Posts
Thumbnail Alt Text Missing (5 posts)

  1. Pedro Gomes
    Posted 3 years ago #


    First of all thank you very much for making a great plugin that's highly configurable :)

    I've set it up in one of my websites and I noticed that the alt text is missing from the thumbnails although it is fetching the thumbnail's title tag.

    All my thumbnails have alt text and title tags attributed, WPP is setup go get the images from the post's thumbnail.

    I'm using the latest versions of WordPress and WPP

    This is the code that I'm using

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=daily&order_by=views&limit=5&post_type=post&excerpt_length=555&thumbnail_width=70&thumbnail_height=70&wpp_start='<div>'&wpp_end='</div>'&post_html='
    <div class=\"wrapper\">
    <div class=\"post\">
    <div class=\"p-con\">{thumb}
    '"); ?>

    Kind regards,


  2. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi Pedro,

    Thanks for the notice! I didn't notice that. I'll take a look into it later today and probably push a new plugin update, too.

  3. Pedro Gomes
    Posted 3 years ago #

    Hi H├ęctor,

    In my case the key seems to be on line 1496.

    As a temporary fix I'm using alt=\"{$id}\" to not have an empty alt tag.

    Thank you very much for looking into it :)

  4. Pedro Gomes
    Posted 3 years ago #

    Another issue I picked up is that the title tag is being placed in the <a> tag instead of <img>. That's being caused by the code in line 1225.

    $thumb = "<a href=\"". $permalink ."\" title=\"{$title}\">";

  5. Hassan Bawab
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.