Popular posts (last 7 days) in Flex Block 1

Posted in: Newspaper
Post count: 57

Hi,

I’m trying to set up Flex Block 1 in a way that would show most popular posts from last 7 days. I’m using Gossip.

In Filter tab of the Flex Box 1 I select Sort order: Popular (last 7 day) and no posts are shown. Can you please help me set it up so that the posts will show correctly?

Thank you

Post count: 27744

Hello,

To sort the block for Popular (24h,48h and 7days) you need to have added the element SINGLE POST VIEWS => https://i.imgur.com/pLWuoSS.png -> https://i.imgur.com/BbrBmL0.png, also, for Popular you need to have this option enable https://i.imgur.com/grI3bti.png
The sort option will be displayed that popular posts of the last 48 hours, those can be older posts.

Thank you!

Post count: 57

Hi,

thank you for your reply.

Where does the element SINGLE POST VIEWS have to be added? To the page where I want to use Popular sort OR on every post?

I have completed the other two settings.

Thank you!

Post count: 27744

Hi,

You need to add the Single Post View in Single Post Template.

Thank you!

Post count: 57

I see. What if I don’t want the info on views to be shown to the general public? Is there some way not to show it and still have the popular posts sorting?

Post count: 27744

Hello,

Yes, you can hide it from the tab CSS -> https://imgur.com/RQYJHFW for each view port.

Thank you!

Post count: 57

Hello,
I have just added number of views to each post.

In TagDiv editor I have selected Popular (last 7 days) from the Sort order drop down. Now the posts are being shown, but not the most popular ones. Do I need to wait for 7 days so that all the data updates or should it work already now as it is?

Post count: 27744

Hello,

Yes, you will have to wait a few days and in the block that is sorted for popular( last 7 days) will display the posts.

Thank you!

Post count: 57

Thank you.
Okay, I’ll wait and see if it starts working.

Post count: 57

Hi,

I have waited more than 7 days to see how the block works. I have noticed two things.

1. The posts displayed are still not top viewed posts
Some of the posts displayed are top posts, but there are also some posts in the block that are definitely not top posts. How do I fix this?

2. The block slows down the page
It seems that this block is using some unoptimized SQL as the page slows down by several seconds, this making it unusable.

// I have tried to paste the SQL query here, but the forum doesn’t allow it.

Our website has 80k+ posts. This query takes from 3 to 9 seconds and it bogs down the website.

Please help with these issues.

Post count: 35449

Hi m, unfortunately, the Popular option, indeed is slowing down the website, this option will be used separately from the other theme options and if the number of posts you have is big, then it is not recommended to be used.
Thank you for your understanding!

Post count: 57

Too bad to hear that. Is there any other workaround?

Post count: 35449

Hello,
What I can suggest is to use this filter – https://i.imgur.com/nYIDnXG.png it should not consume so many resources, but I don’t know if it works properly with the cache.
Thank you!

Post count: 57

Thanks, I will give this a try too.
Do you know if it’s configurable to only 7 days of popular posts or does it show all time popular?

What’s the stats module and where to turn it on?

Post count: 35449

That option is working only if selected on this filter – https://imgur.com/nYIDnXGhttps://forum.tagdiv.com/flex-block-settings-guide/

Post count: 57

Yes, thanks.

Does this option allow to show time limited popular posts (for example, popular in last 7 days) or does it only show all time popular?

Post count: 35449
Post count: 57

Thanks for the links. I think this is the themes’ function, so it probably shows all time popular.

I will just remove this block from my site to gain performance. Thanks for trying anyway.

Viewing 18 posts - 1 through 18 (of 18 total)
The forum ‘Newspaper’ is closed to new topics and replies.