WordPress Popular Posts
Thumbnail path is incorrect (4 posts)

  1. jasonreposa
    Posted 2 years 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)
    &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


  2. Hector Cabrera
    Plugin Author

    Posted 2 years 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
    Posted 2 years 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. Hector Cabrera
    Plugin Author

    Posted 2 years 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.

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.