How to display blog posts on a page by its tag?

I’m using Studio theme and wondering if there is a way to display certain blog posts by tag on a page. And a certain number of posts using that tag. For example, we have a blog called “First Fridays” and we want to be able to have all recent posts tagged with “Art and Soul” to show up in a section of a certain page. Can the posts be displayed just like they are in a Blog Posts section? Seems insane that Shopify or any theme doesn’t allow this simple tag selection right next to choosing which blog to display.

Is there a simple code that can be used in a Custom Liquid section? I’ve seen some various other liquid snippets but they don’t work or I’m not even sure if I’m doing it correctly.

If you can help, can you provide the exact code I would need using the blog name and tag I provided? Are these case sensitive, or do they need an underscore instead of spaces? I’m a newbie.

Thanks so so much!

Come on… who can figure this out??

Currently migrating my website from Wordpress to Shopify and I ran into the same issue yesterday.
I didn’t use the Custom Liquid Section, but I’ll share what worked for me.
It’s kind of a long process since we’re not able to bulk edit blog posts on Shopify for some reason. Nonetheless, it’s worth it.

Note: When I use the word “blog” I’m referring to the word “categories

To do this, you’ll need to go through 4 steps:

  1. Create Blogs i.e. Categories in order to group posts into sections
  2. Assign Blog Posts to newly created “Blogs” i.e Categories
  3. Create Theme Templates for each specific page
  4. Display grouped Blog Posts Using Shopify’s Blog Posts Section

Creating Blogs to assign posts

  • Select Online Store > Blog posts

  • Select Manage blogs at the top of the page

Screenshot 2024-01-04 at 8.12.57 PM.png

  • Select the Add blog option at the top right corner of the page and create a new blog that will serve as your category

    Screenshot 2024-01-04 at 8.13.21 PM.png

    For the sake of this example, I used “Toys Category” as my blog title which will serve as a category for my blog post “Toys”.

  • Click save

Assigning Blog Posts to “Blogs” i.e Categories

  • Open/Select the blog post you would like to move into your newly created blog i.e. category. I’ve selected my “Toys” article.
    In the Organization dialogue box on the right, select the blog that you want this post to belong from the drop-down menu.
    I’ve selected my “Toys Category” blog.

  • Click save
  • You will need to repeat this step for every blog post in order to group them according to their categories.

Creating Theme Templates

You’ll need to create Theme Templates for each blog category that you’ve created through the previous steps.

And finally..

Display Specific Blog Posts Using Shopify’s Blog Posts Section

  • Select Online Store > Pages

If you already have your pages created:

  • Select the page you’d like to display your specific blog posts.

  • In the Online Store dialogue box on the right, select the corresponding Theme Template that you’ve created for the page from the drop down menu. In this case I selected the ‘blog-toy-template”.

If you haven’t created the page:

  • Select Online Store > Pages

  • Select Add page

    Screenshot 2024-01-04 at 9.21.30 PM.png

  • Then select your newly created Theme Template from the Online Store dialogue box on the right.

  • Repeat this step for selected pages

After following these steps, you should have:

  1. your blog posts categorized into different blogs i.e. categories
  2. created Templates for each page you would like specific categories displayed
  3. corresponding Theme Templates selected on all pages you would categories displayed.

I hope this helps!

Which works only if a blog article is only in one category / blog. But does not provide any answer when you want to have different categories (or tags) for your blog post.

3 Likes

Yes, this. My problem exactly. Have you found a solution in the meantime? I’m still looking for it!