Tomsky.pl
1 deal
on 2023-09-21
I need to sort the page by popularity and date on a wordpress blog. I am currently using the WP-PostViews plugin and the data is counted correctly, but due to the use of WP-Rocket, the sorting in the link with the ?v_sortby=views parameter does not work. It only works when logged in as admin, but that's probably because the cache is disabled then. For people not logged in, the list of entries is always shown by date from the most recent, even if there is a ?v_sortby=views parameter. Ideally, the data would be collected from the last year from Analytics, and not counted again after visiting the website.