Multiple blogs - Filtering by tag/topic

Hi all

we have 8 different blogs on our site. While I can create a consolidated listing that pulls x articles from each, what I would really like to do is to also allow filtering by topic - is this possible?

The problem is, from what I can see the tag listings seem to be generated via the individual blog url eg.

https://www.domain.com/blog-1/tag/topic-name

When I guess I need something like this:

https://www.domain.com/all-the-blogs/tag/topic-name

Any pointers in the right direction would be appreciated!

Thanks

Hi @DM2,

This is possible but requires a lot of custom development and manual topic page creation.

The first step is, as you mentioned, to pull all blog posts into a single page (site/landing page, not a blog listing). Let’s call this page “Custom Blog Listing”. This page will fetch the posts using

blog_recent_posts

hubL function.

When building the module to pull blog posts on this Custom Blog Listing, you can add the feature to pull recent posts by tag using the blog_recent_tag_posts hubl function.

To create the tag pages, you can clone the Custom Blog Listing and simply specify the tag(s) to fetch from on each page. Then, repeat for all tag pages.

Best regards,

Abraham Ernesto

Hi @DM2, as @GiantFocal mentions this is possible but requires custom development and has its limitations.

Keep in mind that to do this you will need to leaverage some HubL functions such as blog_recent_posts or blog_recent_tag_posts and they all have limitations such as 10 calls max per page, 100 articles max, etc.

If you have 8 blogs I assume you have a lot of articles, therefore these limitation will really be a problem for your listing page.

You could also leaverage HubSpot’s API to get those articles and then add them to your listing pages, but it might get even more complex than using the functions.
I had a great conversation about this topic in another post in this Community: https://community.hubspot.com/t5/CMS-Development/Blog-Listing-Page-Sort-Functionality-Not-Working-Properly/td-p/983572
Maybe the solution lays in a different approach to what you want to achieve. Did you consider merging those 8 blogs into one? I know it sound a bit crazy if you already have lots of articles, but that would solve your issue as your main blog page wil llist ALL articles and you can add a dropdown/category selector with topics (tags) that will take the user to a specific /tag/ page to see the articles for a specific topic.