• Resolved longnha

    (@longnha)


    Hi,

    I notice that the plugin cache the thumbnail on its own. Is there a way to use the site thumbnail?

    For my site (and maybe many other sites), each post has already have a thumbnail and cropped accordingly. So, just need to get thumbnail and use it. It could save loading time and resources since the images have already been cached before.

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @longnha,

    Is there a way to use the site thumbnail?

    There is, actually:

    1. Under “Display post thumbnail”, select the Use predefined size option.
    2. Pick your desired thumbnail size from the dropdown. If none of the listed options fit your popular posts list then you may need to register a new thumbnail size.
    3. Profit!
    Thread Starter longnha

    (@longnha)

    Hector, I’m not sure which screen is that? The setting screen:

    Thread Starter longnha

    (@longnha)

    Oh yeah, it should be the widget. Unfortunately, I used shortcode to display Popular Posts!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, you should have said so from the start πŸ˜› Please try to be more descriptive when asking someone for help.

    There’s an undocumented shortcode parameter called thumbnail_build that’s the equivalent to that dropdown. Set its value to predefined and also make sure that your thumbnail_width and thumbnail_height parameters match one of your existing image sizes (or “site thumbnails” as you called them), or else WordPress might return an odd image size.

    For example:

    [wpp thumbnail_width=100 thumbnail_height=100 thumbnail_build='predefined']
    Thread Starter longnha

    (@longnha)

    Hector, thank you for the info.

    What I actually mean was that, is there a way to tell the plugin to use the thumbnals without “WPP’s thumbnails cache”? Just some dig in as it maybe better for performance.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yes, and I’ve been telling you how all this time πŸ˜›

    Thread Starter longnha

    (@longnha)

    Then I guess something is not working properly! The shortcode I used:

    [wpp thumbnail_width=100 thumbnail_height=100 thumbnail_build='predefined'range='last7days' stats_views=0 cat='1' limit=10]

    Upon checking, the thumbnails src are still from

    /wp-content/uploads/wordpress-popular-posts/...

    Plugin Author Hector Cabrera

    (@hcabrera)

    You’re missing a space here:

    thumbnail_build='predefined'range='last7days'
    Thread Starter longnha

    (@longnha)

    I cleared the image caches and now it shows up correctly. Thank you for your support.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Using site’s Thumbnail’ is closed to new replies.