Those posts do not appear, as expected. But the first page only lists 2 posts before listing the pagination, even though the "posts per page" setting is set to 15. Page 2 onwards displays fine.
How can I fix this issue? Is it counting all posts (even excluded ones) as part of the total number of posts per page?
Listing page template code:
{% extends "../layouts/base.html" %}
{% if theme.blog.listing_page.use_sticky_nav %} {% require_js %} <script> var element = document.getElementById("hhs-main-nav"); element.classList.add("hhs-alt-nav"); </script> {% end_require_js %} {% endif %}
Blog listing page doesn't show full post count when excluding certain tags
resolver
@MattOnce Consider doing a custom pagination calculation exlcuding the tag "Coming soon" too.
You see contents.total_page_count is calculating the total page count with all blog posts including those tagged "Coming soon".
Martin Angeletti
HubSpot Veteran (12+ years)
❌ Worried about messing up your HubSpot? I've got your back.
✅ Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).
⛅️ Don't get left behind.
→ Click the subscribe button and scroll down to find the opt-in box.
Blog listing page doesn't show full post count when excluding certain tags
resolver
@MattOnce Consider doing a custom pagination calculation exlcuding the tag "Coming soon" too.
You see contents.total_page_count is calculating the total page count with all blog posts including those tagged "Coming soon".
Martin Angeletti
HubSpot Veteran (12+ years)
❌ Worried about messing up your HubSpot? I've got your back.
✅ Join the thousands of people who have discovered how to avoid problems with simple tricks and have started to dominate HubSpot (and not be dominated).
⛅️ Don't get left behind.
→ Click the subscribe button and scroll down to find the opt-in box.
Blog listing page doesn't show full post count when excluding certain tags
resolver
Thank you, @mangelet , that sounds like exactly what I should do. Can you advice what code I might use to create a new page_count variable that excludes "Coming Soon"?
I assume I would need to set a variable that increments based on an if topic != "coming soon" statement, then divide it by the number of posts per page (15)?