Range not working | WordPress.org

[ad_1]

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.

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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer