• Resolved cheloper

    (@cheloper)


    Hi there
    I′m using this custom template to render content
    For some reason range is not working (sometimes it′s showing older content)
    Is there any known issue?
    Any help will be great

    [wpp range=’last7days’ limit=5 stats_views=1 order_by=’views’ stats_category=1 post_html=’

    • <span class=”cat”>{category}</span><span class=”title”>{title}</span>
    • ‘]

      Page: https://www.lapampanoticias.com.ar/ (scroll down anch check right area “Lo más leído”)

    The page I need help with: [log in to see the link]

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

    (@hcabrera)

    Hola @cheloper,

    That’s the expected behavior: the shortcode will list the most viewed posts from the last 7 days. This could include posts that are older than 7 days as the shortcode doesn’t check the publication date by default.

    If you want to show the most viewed posts from the last 7 days and that also were published within the last 7 days you need to use the freshness parameter too (see Parameters for more details):

    [wpp range='last7days' freshness=1 limit=5 stats_views=1 order_by='views' stats_category=1 ...]

    P.S.: When pasting code here you need to use the CODE button, otherwise the formatting (as you can see) will get all messed up.

    Thread Starter cheloper

    (@cheloper)

    ha sorry Héctor for that code issue (just forgot to do that)
    And thanks for the quick response. already implemented. have a nice day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Range not working’ is closed to new replies.