DEV Community


How to access Shopify Blog object in different pages?

Muhammad Shoaib
I am an experienced Full Stack Web Developer with a unique and adaptable Website designs and styles, agency sites, e-commerce, Online store all kind of web apps.
Updated on ・1 min read

Since Shopify lets your store have multiple blogs, you have to target the specific handle of your blog in the liquid code.

Change the code from:

{% for article in blog.articles %}

to include the handle of your blog:

{% for article in %}

If you want to fetch blogs by categories, just repalce news handle by your category name example below

{% for article in %}

In above example fashion is your category name.

Discussion (0)