CMS Development

alivia
Colaborador(a)

Creating a blog homepage that shows most recent blogposts by category/tag

Hello,

 

I'd like to have a blog home page that not only shows blog posts by tag/category and allows you to filter by these, but that actually shows you the most recent articles by category/tag with a see more link.

 

 

Just like this - there's a Product updates tag and a wistia culture tag 🙂Screen Shot 2019-05-21 at 09.35.15.png

 

Thanks!

alivia

0 Avaliação positiva
1 Resposta 1
DaniellePeters
Top colaborador(a)

Creating a blog homepage that shows most recent blogposts by category/tag

Hey there,

 

You can use the HubL function blog_recent_tag_posts to get the most recent posts from a particular tag. You'd need to do this for each tag.

https://designers.hubspot.com/en/docs/hubl/hubl-supported-functions#blog-recent-tag-posts

 

You can follow along with this tutorial to actually print out the blog posts onto your homepage

https://designers.hubspot.com/docs/tutorials/printing-sets-of-blog-posts-on-page-templates