WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Thumbnail Alt Text Missing (5 posts)

  1. Pedro Gomes
    Member
    Posted 1 year ago #

    Hi,

    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}
    <h3>{title}</h3>
    <p>{summary}</p>
    </div>
    </div>
    </div>
    '"); ?>

    Kind regards,
    Pedro

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    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
    Member
    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
    Member
    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
    Member
    Posted 5 months ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.