Info found in the documentation is kind of contradictory – it says there that “This sorting option will not work with cache plugins.” and on the same page there’s a screenshot stating that if this option is turned on that it will be a calculation of estimation of posts popularity, if used with caching plugin.
We are running WP Rocket caching plugin with this option turned on for 7 days now but no posts are showing at all. Is it possible that some theme JS that tracks posts views is not being executed? Is there a way we can confirm that post views are being tracked by the theme?
Hello,
Please enable this option: https://i.imgur.com/xmyQUIk.png, and the sorting option should work with the cache plugin.
Thank you!
Thanks, the “SHOW POST VIEWS” option was disabled, enabling it did the trick but I am curious, how does the description “Enable or disable the post views (on single post page)” correlate to making the sort option “Popular” work and display the posts while this sort option is used?
Check this topic – https://forum.tagdiv.com/topic/post-views-7-days-incorrect-count/
This posts shows how to create a widget that works perfectly.
Hi petar777, thanks for the replay.
We followed the steps Anamaria outlined in this topic and have compared them with the steps described in the topic you linked
- option in theme panel to show views on post
- 24h/48h post views sorting
- ajax view count
- insert the element for single post views inside template for single post
- hide with css showing views on frontend.
and oddly enough we did not have to do the “insert the element for single post views inside template for single post” step as the “7 Days Post Sorting” works without it.
Granted, we have not tested yet and compared the post views to see if it’s calculating the views correct as opposed to data collected via Jetpack and Google Analytics vs theme counter but it is noted that if caching plugins are used this will only be an estimation. Unfortunately, we do use WP Rocket on our website so I don’t expect this option to show 100% correct data.
-
This reply was modified 1 year by
mm-2.