Featuring a dynamic blog post on a collection page

Featuring a dynamic blog post on a collection page

Seems like an easy task, right? Slap a metafield on a collection that references a blog article, connect the dynamic source in the theme editor, should take less than an hour.

Welp, I thought so too but Shopify had other plans for my thursday evening.

The goal

Show a section on collection pages that highlights a related blog post

Technical Considerations
  • The template is shared across other collections and not all collections will have a blog post. Therefore the section needs to be hidden if there is no post related to this collection
  • The section needs to show different articles on 

 

Back to blog