Ready to get started?Download WordPress


WordPress Popular Posts
Thumbnail Alt Text Missing (5 posts)

  1. Pedro Gomes
    Posted 1 year 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. Héctor Cabrera
    Plugin Author

    Posted 1 year 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 1 year 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 1 year 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. magiclogix
    Posted 6 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.