Title: Range not working
Last modified: November 9, 2022

---

# Range not working

 *  Resolved [cheloper](https://wordpress.org/support/users/cheloper/)
 * (@cheloper)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/range-not-working/)
 * 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/](https://www.lapampanoticias.com.ar/)(
      scroll down anch check right area “Lo más leído”)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frange-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/range-not-working/#post-16181935)
 * Hola [@cheloper](https://wordpress.org/support/users/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](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#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](https://wordpress.org/support/users/cheloper/)
 * (@cheloper)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/range-not-working/#post-16182070)
 * 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.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [range](https://wordpress.org/support/topic-tag/range/)

 * 2 replies
 * 2 participants
 * Last reply from: [cheloper](https://wordpress.org/support/users/cheloper/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/range-not-working/#post-16182070)
 * Status: resolved