Popular last 7 days sorting not working

Posted in: Newspaper
Post count: 46

Hi.
I have a Flex Block 2 at my home page (justretail.news) (https://snipboard.io/rSUqW4.jpg).
According to the block settings (https://snipboard.io/HdaVZv.jpg) it should show posts from all categories sorted by the number of views from the last 7 days.
I have the correspondent theme panel option enabled (https://snipboard.io/e5qBw1.jpg).

What is happening is that the post shown are not the most popular. Here you can check the associated data for the second post on the list (https://snipboard.io/jTyV9B.jpg). But there are other with more views. One from today, 3th sep (https://snipboard.io/XxGdpY.jpg) and other from yesterday (https://snipboard.io/K1WZji.jpg). As you can see at the latest screenshot, one of them is associated with just one category and the other with two of them; none of them is shown on the list in the second place.

So, could you tell me if either I am missing something or I have misunderstook the way this feature sort the most popular posts?

Thanks in advance.

Post count: 18283

Hello !

Please make sure that your post views are active as you can see here: https://prnt.sc/ubebim ; https://prnt.sc/ubebss

Let us know the result !

Thank you !

Post count: 46

Hi Vlad.
Please, check my current configuration:
– 7days post sorting (https://snipboard.io/zawt2I.jpg). I see the toggle button in blue, I assume this is the enabled position, is it right?

– post views (https://snipboard.io/BrsY10.jpg). I have the show post views option already enabled.

Do I have the right configuration?

Thanks in advance.

Post count: 18283

Hello !

We have investigated your website and now everything seems to be working fine from what we can see: https://prnt.sc/uctt8p Please make sure that your cache is clear and re-check.

Thank you !

Post count: 46

Hi Vlad.
Thanks for your support but… Your screenshot does not match with the views counter of the related posts.
If I open the webpage I can see exactly what you shown at the screenshot, but if I check the views counter I have the following:

“Cómo adaptarse a la nueva…” post, 42 views
https://snipboard.io/LXBdCx.jpg

“Necsum Trison gana…” post: 54 views
https://snipboard.io/iADwxo.jpg

“Así sera el Burger Kin…” post, 60 views
https://snipboard.io/dz7AVN.jpg

“Wagamama…”, post, 68 views
https://snipboard.io/yVIuEf.jpg

So according to that data, I would expect a different sorting. Despite the fact of the browser cache, at your screenshot the order is different from the views count. Is there anything wrong? Am I misunderstanding something? Not only there are post with more views than others, but the sorting is also different from expected…

Thanks in advance.
Regards

Post count: 18283

Hello !

Please contact us via email at contact@tagdiv.com and provide the following:

– admin url and credentials
– cPanel url and credentials
– A link to this topic in order to identify you

Our team will take a look !

Thank you !

Post count: 46

Is there any way to have a 24 hr views count sorting?

Post count: 18283

Hello @mihai_sormanescu !

Unfortunately this option is not yet available !

Thank you !

Post count: 46

thank you.

My question is this: I want to display on the site the most five-six most read articles in a period of time (7 days, the best option?) but we also need, simoultaneosly, to have a cache module installed. What do you recomend I do?

„Vrem un top al celor mai vizitate articole din ultima perioada si avem nevoie sa ramana instalat un modul de cache, ce solutie ne recomandati?”

Post count: 35449

Hi mihai_somanescu,

Unfortunately the theme do not has an option to create or edit a filter, therefore these changes need to be made in theme files.
The only solution, in this case, would be to edit the popular7, just replace in the code the “604800” seconds for seven days with the “2592000” for 30 days.
The file that need to be edited is on this path -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php -> https://i.imgur.com/VXFW5ec.png
In order to change the text from drop-down chooser you need to edit the wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php
-> https://i.imgur.com/rYb8fOW.png

Hope this will help you!

Post count: 46

Thank you!

So I can t choose anything other than 7 days or 30 days? Does any of them work with a cache module installed?

Post count: 35449

Hi,

You can set the days you want, but these need to be set in seconds, above I provide an example for 30 days.
Unfortunately this is not recommended with ache plugins https://i.imgur.com/tJWm7GY.png, just make sure that you have the settings set as in this guide -> https://forum.tagdiv.com/block-settings-guide/ -> https://i.imgur.com/MOC8YZT.png

Thank you for your understanding!

Post count: 12

Thank you! This was very helpful. We’ve created a child-theme based off of Newspaper so that we can make adjustments to the templates when needed. Is this a change we can make to the child-theme or will we have to edit files from the actual Newspaper template?

thanks!

Post count: 12

“The only solution, in this case, would be to edit the popular7, just replace in the code the “604800” seconds for seven days with the “2592000” for 30 days.
The file that need to be edited is on this path -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php -> https://i.imgur.com/VXFW5ec.png
In order to change the text from drop-down chooser you need to edit the wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php
-> https://i.imgur.com/rYb8fOW.png”

To be more specific, we are referring to this comment.

Can we able to clone this file -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php and wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php into our child theme or a custom plugin and make changes there rather than doing it in the actual plugin file? so that whenever you guys push some updates, we don’t loose our changes.

If so, can you say how we can do it?

Thanks!

Post count: 35449

Hi,
Yes, for most of the files you can use a child theme, unfortunately the above files will not work in a child theme, sorry!
Thank you!

Post count: 46

Hi guys.
I have a new question regarding this topic. When checking the database I found that for a new post from today (11/dic/20), the number of total visit count is lower that the total count for last 7 days.

You can check the database contents at the following screenshot: https://snipboard.io/gFvb1d.jpg

How is it possible? I would expect to have same value for a given post that has been published the same day. Could you please give me a hint to understand such behavior?

Thanks in advance.

Post count: 46

Hi again.

I have to say that I have all the settings configured so I can use the 7-day most popular post filtering. Does it affect the way the total visit count is performed?

Thanks in advance.

Regards.

Post count: 35449

Hi AlbertoJR, if you are referring to the view count form our theme. The real and unique value for your visitors is given by Google Analytics. Our post view counter will count any post-visualization, even if the post is visited twice by the same person.
Also if you are using a cache plugin you must have this option enable https://forum.tagdiv.com/ajax-view-count/
The filter will not affect the post vie counter, but is possible that the views for those post to increase and be in top also a new post starts from 0 with the view count therefor will not be display in that bloc with the 7-day most popular post filter.
Thank you!

Post count: 46

Hi Calin.
Thanks for your response. I’ve been trying to understand the behavior but still have some questions.
When the 7-day count is increased?
I understand that the post view count will sum all the views of a given post during all its life.
And the 7-day count will gather all the visits for the provided range (last 7 days), but every 7-day increase will also sum at the total post view count.
So the 7-day count will decrease if after 7 days, the rate of visits decreases, so I would found a lower value for the 7-day count than the post view count.
What I would never expect is to have a 7-day count value higher that the total post view count. This means that some views have considered for the 7-day count but not for the total post view count.

So, would you clarify this? Am I misunderstanding something?

Thanks in advance.

Post count: 35449

Hi AlbertoJR, I think that our guide can explain this better then I can use my words -> https://forum.tagdiv.com/7-days-post-sorting/
The 7 days post sort made based on the views recorded on each post in part.
Thank you!

Post count: 46

Hi Calin.

Thanks for your suppport.
I checked the guide but still have the same question: why the post view count is lower than the 7-day count?
For an older post that appeared at the most popular section, now I can check that the 7-day count is lower than the total view count.
But for new posts, the 7-day count is bigger that the views count (46 towards 7, for example). Why with only 7 views at the total count the 7-day count has 46 views?
Thanks in advance for your clarifications.
And, Merry Christmas to all tagDiv team!

Post count: 18283

Hello !

We need to take a look and see what can be done there to see if a fix can be done in order to fit your needs.

Please contact us via email at contact@tagdiv.com and provide the following:

– admin url and credentials
– A link to this topic in order to identify you

Our team will take a look !

Please note that at the moment the Support team is not 24/7 available. We answer the topics from Latest to Newest Monday – Friday from 08:00AM to 05:00PM GMT+2

Thank you !

Post count: 46

Done.
Thanks in advance.

Post count: 46

Hi again.

Just a quick question: should I have the Ajax view count option enabled in order to have the 7-day sorting working? I am not using any cache plugin.

Thanks in advance.

Post count: 18283

Hello !

If you don’t have any caching plugin you don’t need to, but first ask the host and make sure that your hosting plan does not have any caching options included.

Thank you !

Viewing 25 posts - 1 through 25 (of 25 total)
You must be logged in to reply to this topic.