Hi there,
Not sure if I understood that correctly, you can’t change Time Range to something else but the “All-time” option? Am I right? Because I just tested it on one of my blogs and I was able to set ti to “Last 7 days”.
I have the same problem. I can set it to whatever I like, but all it displays is all time.
Hi guys,
I’ll try to do my best to explain what’s going on. English isn’t my main language so I hope I can make myself clear.
This is due to a new field in the WordPress Popular Posts table (more specifically, last_viewed). This new field stores the last time a post was viewed by someone and since this information was not available before the update, WordPress will automatically set it to the date and time you upgraded to version 1.5.x. Please note that this is a one-time procedure, and this will only happen to those upgrading from 1.4.6 to 1.5.x.
After the upgrade my plugin will update this new field whenever a post is viewed, hence the Time Range feature will “correct” itself and things should go back to normal within the next few days. It’ll probably take a week or two before you start seeing different results (or maybe less if you get a decent amount of traffic), so please be patient.
Thanks in advance for your understanding!
Cheers
I still don’t understand why the display of the number of times an article has been viewed contains the total number, and not the number of times within the time limit specified. When the page was last viewed is not relevant to how many times it was viewed within this time frame and I don’t see how posts getting this field updated to even later dates could possibly help the matter. It seems to me that the function is simply not working and you are not understanding the stated problem.
I was looking through the code of the new version and it looks like you have the SQL basing what displays in the list on what was last viewed in the time range specified, and ordering by the total number of views. Previously the time limit displayed the articles based on how many times the article was viewed within the time range, regardless of the last viewed date. The way I use the plugin, I don’t care when the article was last viewed, I only care about how many times the article was viewed in the given time frame. Is the code for the old version still available? The old version was much more suitable to my needs.