Saturday, December 10, 2022
HomeWordPress Developmentshortcode - thumbnail_width not working in wordpress hottest submit plugin

shortcode – thumbnail_width not working in wordpress hottest submit plugin


I’ve been utilizing WordPress hottest plugin to get standard submit utilizing brief code. By default the plugin generated the function picture by 100×75. I need that in 200×200.
I take advantage of this question to get the thumbnail as I need but it surely’s not working.

if ( function_exists('wpp_get_mostpopular') ) {
    $pop_posts = wpp_get_mostpopular(array(
        'restrict' => 8,
        'vary' => '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);
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments