Support » Plugin: WordPress Popular Posts » Thumbnail size set in widget wasn't applied

  • Resolved wooncherk

    (@wooncherk)


    If I set the thumbnail size in Widget, it won’t take the settings.

    Looking at the code, if I add the following to list_items(), then it works.

    $permalink = get_permalink();
     // add the following line
    $thumbnail_size	= preg_match("/\d{1,}x\d{1,}/", $defaults['thumbnail_size']) === 1 ? explode('x', $defaults['thumbnail_size']):  $defaults['thumbnail_size'];
    $pre_thumbnail = (has_post_thumbnail() && $defaults['thumbnail'] == 'before_title') ? get_the_post_thumbnail(get_the_ID(), $thumbnail_size) : '';

    The same line is copied from widget().

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • Plugin Author Héctor Cabrera

    (@hcabrera)

    Hi there!

    Are you sure you posted at the right place? Those lines of code aren’t familiar to me, nor the list_items() function you mentioned.

Viewing 1 replies (of 1 total)
  • The topic ‘Thumbnail size set in widget wasn't applied’ is closed to new replies.