shortcode – thumbnail_width not working in wordpress most popular post plugin

Question

I have been using WordPress most popular plugin to get popular post using short code. By default the plugin generated the feature image by 100×75. I want that in 200×200.
I use this query to get the thumbnail as I want but it’s not working.

if ( function_exists('wpp_get_mostpopular') ) {
    $pop_posts = wpp_get_mostpopular(array(
        'limit' => 8,
        'range' => 'all',
        'excerpt_length' => 25,
        'excerpt_by_words' => 1,
        'thumbnail_width' => 200,
        'thumbnail_height' => 200,
        'post_html' => '<li class="feature-blog-card flex flex-col">{thumb_img} <a href={url}><div class="top-part"><h3 class="wpp-title">{text_title}</h3></div></a></li>',
        'thumbnail_width' => 100,
        'thumbnail_height' => 75,
        'order_by' => 'views'
    ));
    print_r($pop_posts);
}

0
Irfan Emon 2 months 2022-12-10T04:19:07-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse