On the blog list page of the blog feature, I want to group blog posts by tag and display all blog titles by tag.
Default modules don’t support this feature. So I’m looking for a custom module someone made.
Example:
# Blog list page title
## tag1
- blog article1
- blog article2
- blog article3
## tag2
- blog article4
- blog article5
- blog article6
…etc
Hey, @mizomizo
It’s great to see you’re diving into custom development. Your custom module sounds like a great project. It may not be possible for a community member to share the complete code for a custom module as this would fall under work that is paid. Where our community can help is looking at specific errors or issues you run into after building out your module.
Here are some resources to get you started:
If you are not a dev and would like to work with one who is a HubSpot expert, have a look at the options here — Solutions Provider directory.
Best,
Jaycee
I understood, thanks for telling me.
I gonna try to search with the resources you shared.
Thank you very much
Hi @mizomizo, I’m not sure if I fully understand what you are trying to achieve, but seems like what you are trying to do is exactly what the built-in HubSpot blog tags functionality does for you!
When you tag a blogpost with a tag, HubSpot creates a listing page for you that should include all the blogposts with a specific tag.
Let’s say your blog is: https://mypage.com/blog and you have a tag “News”. You can access https://mypage.com/blog/tag/news and you will see the listing of all the articles tagged with “News”.
On the other hand, if you are trying to add modules by tag into a custom module or a template, I recommend you checking the blog_recent_tag_posts function in the documentation: https://developers.hubspot.com/docs/cms/hubl/functions#blog-recent-tag-posts