Hi !
I have read all the post about that. So : count views is active but masked with css, 7days sorting is active also. But in the widget it’s most read posts of all time and not the 7 last days… (the widget is also configured with 7 days sorting).
If it’s not possible, could we reset all the counters ? ๐
Thank you very much,
Antoine ๐
-
This topic was modified 11 years by
EliptiK.
Hi,
Please note that it pulls from ALL the posts the most accessed in the last 7 days NOT the posts that are published in the last 7 days. Also please test this without using caches as the last days 7 post count works based on post views so if you use cache this might not work properly.
Also test it by editing a post and take a look at custom fields: http://screencast.com/t/mSiJvu61tGj then refresh the post a few times and check if it increments. If those values changes when the post is viewed then 7 day sort should work properly.
Thanks!
Hi,
I have provided above a solution to check if 7 days post count works properly, so when you refresh a post for few times to check if views are increment there.
Yes, you can only manually to reset post views, but please note that resetting post views will not affect 7 days post count, as the 7 days article views are automatically reset after 7 days, it start again from day 1 reset and count, day 2 reset and count.
Thanks!
Ok thanks !
Apparently I have a problem with 4 articles which are visited a lot by bots. That’s why they are always on top. When I put the count to 0, the sorting works perfectly, good job ๐
My question now is, how can I exclude these articles of the sorting ?
Thanks for your help!
Antoine
Hi,
You can add the 'post__not_in' wp query parameter to the 7 days post sorting here: http://screencast.com/t/rBIL9MMEq
$exclude_ids = array( 150, 197, 170 );
$wp_query_args['post__not_in'] = $exclude_ids;
Replace the post ids with yours.
Thanks
Can anyone tell me why support is ignoring me with similar issue?!
Link to the topic https://forum.tagdiv.com/topic/top-posts-7-days-sorting-not-working/