Skip to product information
1 of 1
Published:2023.09.10

Example of setting up Shopify's blog posts section to display only posts with a specific tag

Example of setting up Shopify's blog posts section to display only posts with a specific tag

Applications

  • Blog management and editing

How to implement

  • LIQUID
View full details

The blog post section of the Shopify theme "Dawn" displays all posts from the specified blog, but if you want to display only event information in the news, this is a setting that allows you to display only posts with a specific tag. The "Show all" link destination is also narrowed down by tag.


Example of how to set up a blog post section to display only posts with a specific tag


Setup Step 1: Add the schema to "featured-blog.liquid" and the label to "ja.schema.json"


Step 2: Modify "featured-blog.liquid" Part 1: Change the process of retrieving blog posts


Step 3: Modify “featured-blog.liquid” Part 2: Change the processing of the “Show All” button


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add schema to "featured-blog.liquid"


Add a label to "ja.schema.json"


Fix for "featured-blog.liqui...

Related Post