• Resolved hing02

    (@hing02)


    I really want to get the “Trending” in Stats panel with shortcodes or parameters.I would like to add the trending article list in a page.

    Any direct way to do it?

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

    (@hcabrera)

    Hi @hing02,

    Yep! The Trending section from the Stats panel shows the most viewed posts from the past hour.

    To do the same with the shortcode, you need to use the parameters range with a value of custom so you can specify a custom time range; time_unit so you can specify a custom time unit (hour in this case); and time_quantity so you can specify the number of time units (hours). The resulting shortcode would look like this:

    [wpp range='custom' time_unit='HOUR' time_quantity=1 order_by='views' stats_comments=1 wpp_start='<ol class="wpp-trending-list">' wpp_end='</ol>']

Viewing 1 replies (of 1 total)
  • The topic ‘how to get the “Trending” with shortcode?’ is closed to new replies.