WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Thumbnail path is incorrect (4 posts)

  1. jasonreposa
    Member
    Posted 10 months ago #

    Thank you for your wonderful plugin. I upgraded from 2.3.2 to 2.3.5 today and my images disappeared. Based on this forum, I updated to 2.3.6 and it still didn't fix the issue. Note I'm also using WTC with CloudFront and S3 as a CDN.

    PHP: (updated to use post_html instead of pattern_form)
    wpp_get_mostpopular("
    limit=3
    &range='weekly'
    &stats_comments=0
    &thumbnail_width=122
    &thumbnail_height=91
    &post_html='<li class=\"sidebar-most-popular-news-with-image\"><div class=\"sidebar-most-popular-news-image\">{image}</div><div class=\"sidebar-most-popular-news-text\">{title}</div>'
    ");

    The plugin will output src="http://s3.mbtcdn.com/news/wp-content/uploads/2013/06/outlivingretirement-featured-122x91.jpg"

    But in reality it's src="http://s3.mbtcdn.com/news/wp-content/uploads/2013/06/outlivingretirement-featured-122x85.jpg"

    Our thumbnails vary in height, so it's not like I can force "thumbnail_height=85" and this will automatically work, since other images will be broken.

    I looked through the source code but 2.3.2 and 2.3.5 look quite different

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Jason,

    I just uploaded a test version here that hopefully fixes the problem. Could you please try it out?

    Also, which thumbnail source did you set in Settings > WordPress Popular Posts > Tools?

  3. jasonreposa
    Member
    Posted 10 months ago #

    I tried that version and cleared the cache, but still incorrect paths.

    Thumbnail source is set to "Featured image". Is it possible to set it to one of my custom image sizes?

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 10 months ago #

    Alright, thanks for the response. That means there's an extra thing to do, but should be fairly simple since it already works with the "First image on post" option.

    About the thumbnail size, you're already setting custom image sizes with the thumbnail_width / thumbnail_height parameters on the wpp_get_mostpopular() template tag. Thumbnail source simply tells WPP where to get the images from.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.