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

    (@hcabrera)

    Hola Iván,

    When you set the widget to use the “stock” thumbnails, WPP calls the get_the_post_thumbnail() function to retrieve the thumbnail image using the specified size.

    This is what WordPress is returning in your case:

    <img width="2048" height="1367" src="https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" srcset="https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o.jpg 2048w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-300x200.jpg 300w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-768x513.jpg 768w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-1030x688.jpg 1030w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-1500x1001.jpg 1500w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-705x471.jpg 705w, https://tbv.wancora.cat/wp-content/uploads/2018/03/10535679_308270449334193_1014144952197942695_o-450x300.jpg 450w" sizes="(max-width: 2048px) 100vw, 2048px">

    It seems WordPress failed to find a thumbnail with size 710×375 in your Uploads folder so it returned the original image instead.

    Try using Alex Mill’s Regenerate Thumbnails plugin to (re)generate the missing image size(s) so WPP can display the right one.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Marking topic as resolved due to inactivity.

    Thread Starter ivanwancora

    (@ivanwancora)

    Hola Hector

    I try to make a custom image size with

    add_image_size(‘custom_magazine’, 746, 349, true);

    then i pass it to the widget and the widget don’t find the size again.

    As you can see in my server both sizes ‘Magazine’ and ‘Custom Magazine’ exist. And Enfold find them.

    https://imageshack.com/a/img922/6295/2bY9fB.jpg

    In this moment ‘Custom magazine’ is the thumbnail selected and the problem is the same.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey Iván,

    Did you regenerate your thumbnails as I suggested before after creating this new size?

    You could also just set the size of the thumbnail manually (Widgets > WordPress Popular Posts > Posts settings > Display post thumbnail > Set size manually) and be done with it – but make sure to clear WPP’s image cache afterwards (Settings > WordPress Popular Posts > Tools > Thumbnails).

    Thread Starter ivanwancora

    (@ivanwancora)

    Hello again.

    I follow the instructions and it doesn’t work. :S

    Plugin Author Hector Cabrera

    (@hcabrera)

    No idea then, sorry.

    As stated before, WPP uses the images returned by WordPress when the widget is configured to use one of the predefined sizes. The plugin, in that case, has no control over the returned image.

    Follow the last suggestion I made on my previous comment if you want WPP to display the exact same size you’re looking for.

    Thread Starter ivanwancora

    (@ivanwancora)

    Thanks Hector.

    I’m going to recommend to the community maganer crop the featured images in a fixed size.

    Thanks for the plugin

    • This reply was modified 6 years, 8 months ago by ivanwancora.
    • This reply was modified 6 years, 8 months ago by ivanwancora.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Widget Thumbnail’ is closed to new replies.