Sorry that is not possible. The plugin stores only accumulated views.
Thread Starter
Nurbis
(@nurbis)
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 ?
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/ =)
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!
romapad, many thanks for quick fix. Will test and report back.