Title: Posts for last week
Last modified: August 30, 2016

---

# Posts for last week

 *  Resolved [Nurbis](https://wordpress.org/support/users/nurbis/)
 * (@nurbis)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/posts-for-last-week/)
 * Hello Lester, great plugin 🙂
    Is it possible to show on top list only posts 
   which are (for example) max 7 days old ? So it will be like top list of the week
   except it did not have to count views for last week, it will only exclude posts
   which are older 🙂
 * [https://wordpress.org/plugins/wp-postviews/](https://wordpress.org/plugins/wp-postviews/)

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

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409614)
 * Sorry that is not possible. The plugin stores only accumulated views.
 *  Thread Starter [Nurbis](https://wordpress.org/support/users/nurbis/)
 * (@nurbis)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409616)
 * Yes, thats what Im saying. I dont need any other views, what I need is that when
   there will be list of most views posts, all posts which are older than 7 days
   will be excluded from the list. I believe there must be a solution on wordpress
   for this but unfortunately Im not too good on that and php 🙂 Please can you 
   help me ?
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409634)
 * Yeap it is possible, but I don’t provide support for custom solution, the plugin
   is provided as-is.
 * If you need paid help, checkout [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
   =)
 *  [romapad](https://wordpress.org/support/users/romapad/)
 * (@romapad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409947)
 * Hi! This is the simplest solution for that:
    just go to wp-postviews.php in the
   plugin directory and find this code: `post_date < '".current_time('mysql')."'`
   change it to: `post_date >= DATE_SUB('".current_time('mysql')."', INTERVAL 30
   DAY)`
 * change 30 to whatever number of days you need.
    Don’t forget to update this code
   after plugin update!
 *  [suge1w](https://wordpress.org/support/users/suge1w/)
 * (@suge1w)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409972)
 * romapad, many thanks for quick fix. Will test and report back.

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

The topic ‘Posts for last week’ is closed to new replies.

 * ![](https://ps.w.org/wp-postviews/assets/icon.svg?rev=978002)
 * [WP-PostViews](https://wordpress.org/plugins/wp-postviews/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-postviews/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-postviews/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-postviews/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-postviews/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-postviews/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [suge1w](https://wordpress.org/support/users/suge1w/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/posts-for-last-week/#post-6409972)
 * Status: resolved