Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter mathvp

    (@mathvp)

    Hi Héctor, thanks for your quick response!
    No, this option is disabled:
    https://imgur.com/A5A3SrD

    I tried to list the Popular Posts by code using a shortcode:

    function most_viewed(){
        $args = array(
            'post_type' => 'post',
    	    'header' => 'Mais acessadas nos últimos 7 dias',
            'header_start' => '<h2 class="widget-title">',
            'header_end' => '</h2>',
            'wpp_start' => '<div class="grid__slider__carousel">',
            'wpp_end' => '</div>',
            'post_html' => '<div class="card__post card__post-list">{thumb} <div>{title} <div class="wpp-meta post-stats">{item_position}o lugar</div></div></div>',
            'title_length' => 55,
            'thumbnail_width' => 150,
            'thumbnail_height' => 150,
            'order_by' => 'views',
            'range' => 'weekly' // I also tried 'last7days'
        );
    
        return wpp_get_mostpopular($args);
    }
    add_shortcode( 'most-viewed', 'most_viewed' );

    And still the same problem…
    I have no idea, but I’ll wait to see if it was a cache issue…
    I’ll back here if I figure out what is the problem

    Thanks for your support!

    • This reply was modified 3 years, 10 months ago by mathvp.
Viewing 1 replies (of 1 total)