Hi, The popular posts list doesn’t seem to be updating. If I’m not mistaken, it’s just showing post I visited the most while logged in into my admin account. And it’s definitely not matching the list of popular posts I see in the dashboard.
I have “Load popular posts list via AJAX” > Enabled, “Log views from” > Visitors Only, “Data Sampling” > Disabled and “Data Caching” > Enabled (1 hour). I’m also using the LiteSpeed Cache plugin. Could it be that some LiteSpeed Cache settings are interfering with the WordPress Popular Posts plugin? Thanks!
Could it be that some LiteSpeed Cache settings are interfering with the WordPress Popular Posts plugin?
Could be, try disabling the LiteSpeed Cache plugin and check again. If the problem goes away after disabling it then you’ll know for sure it’s something related to that particular plugin.
If the problem persists even after disabling the LiteSpeed Cache plugin then it might be a conflict with a different plugin altogether. In such case try following these troubleshooting instructions and report back your results.
@hcabrera Okay, I ran the tests and I think it’s not the plugin but my understanding of it. On the main dashboard page under “Trending now” I can see a quite dynamic list of posts that change every few minutes. But when I go to the plugin’s settings > stats the most viewed posts for the 7 days and 24 hours match what I see on the front end (I’ve installed the plugin 2 days ago so the 2 are the same). So the question is, is it possible to change the criteria used to display the popular posts – such as the timeframe and the type of post (most viewed, most commented, hall of fame, etc.)? Thank you!
On the Stats page (WP Dashboard > Settings > WordPress Popular Posts) we have 4 “tabs”:
Most Viewed
Lists the most viewed posts within the selected Time Range (above the Comments / Views labels from the chart). You can tell which Time Range is the currently active one as it’s styled differently from the other ones.
Following the example from the screenshot, this would be the equivalent of setting the Time Range dropdown from the widget to “Last 7 days” and the Sort posts by dropdown to “Total views”.
Most Commented
Works exactly the same way as the Most Viewed tab, except this one lists the most commented posts from the selected Time Range.
This would be the equivalent of setting the Time Range dropdown from the widget to “Last 7 days” and the Sort posts by dropdown to “Comments”.
Trending now
Lists the most viewed posts within the last 24 hours.
This would be the equivalent of setting the Time Range dropdown from the widget to “Last 24 hours” and the Sort posts by dropdown to “Total views”.
Hall of Fame
Lists the most viewed posts of all time.
This would be the equivalent of setting the Time Range dropdown from the widget to “All-time” and the Sort posts by dropdown to “Total views”.
Configuration
There’s also a little popup window that allows you to configure some of the stuff you see on the Stats page:
Post type (by default it’s post)
Max. number of posts to show (default is 10)
Whether to only show posts that were published within the selected time range (eg. list the most viewed / commented posts that were published within the last 7 days)
So I just realized I kind of wrote a wall of text here haha hopefully it answers your questions but if not feel free to let me know, alright?
@hcabrera Thank you for the long explanation. I apologise for being slow, but how can I show the most viewed posts in the last 24 hours on the front end? Right now the most viewed posts in the last 7 or 30 days (I can’t tell the difference because they are the same) are being displayed and I’d like my popular posts list to be more dynamic, as there are more differences on a 24 hours range than on the 7 days range. Thank you!
@hcabrera Thank you! For some reason I kept on looking at the settings > stats page and there was no “Save” button there. I figured it out eventually. Thank you for your patience.