Insider Posted September 2, 2021 Posted September 2, 2021 Hi all, Is there a way to calculate and display the number of blog posts in a summary block with a code block immediately before/above the summary block? (if there is another solution without using code block, of course let me know. I'm just guessing its going to have to involve a code block for how and where I want the information displayed.) For example, after filtering, I have 300 blog posts and set the number of viewable blog posts to 30. Here's text that I put in the image below for the time being to show what I would ideally like to achieve. I'm going to have hundreds of these summary blocks and blog posts will be added daily which will change the number of posts in a number of summary blocks. So as much as I'd like to simply add text, it will be hard to keep up of the various changes to the summary blocks. One other important point. If I have less than 30 blog posts, the code would have to be adaptive to reflect this. So if I only have 20 posts, then the text should read "Showing results 1 - 20 of 20 projects". This almost sounds impossible but I have seen it on another website so I imagine it has to be possible. https://projectsinsider.com/collection/off-the-plan-and-new-projects/city-of-casey-vic lifeisgood Cheers.
tuanphan Posted September 11, 2021 Posted September 11, 2021 Hi, You will use this for Summary Blocks only or Summary Block, Blog Page, Blog Category Filter page..? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Insider Posted September 11, 2021 Author Posted September 11, 2021 15 hours ago, tuanphan said: Hi, You will use this for Summary Blocks only or Summary Block, Blog Page, Blog Category Filter page..? Hi @tuanphan, For Summary Blocks and Blog Page. I may have several pages with different filters used on the Summary Blocks. Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.