Liquid Iterate Through All Articles in All Blogs

Highlighted
Shopify Partner
164 34 56

You need to create a link list and then in the items you need to add all the blogs 

Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
0 Likes
Highlighted
Tourist
9 0 0

Ok, so I think I've figured it out...

 

I created a menu in the navigation section with the blogs I want - that menu gives me a handle - so now I use that handle for my linklist? 

0 Likes
Highlighted
Shopify Partner
164 34 56

Exactly 

Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
1 Like
Highlighted
Tourist
9 0 0

Great - thanks for that!

0 Likes
Highlighted
Shopify Partner
164 34 56

Please accept the solution and like my solution. Thanks

Problem Solved? ✔️Accept the solution so you can help others.
* Email: fayyazraza@gmail.com * Skype: fayyaz_raza
1 Like
Highlighted
Tourist
9 0 0

Thanks mate, I've liked your answer but I can't mark it as a solution since I didn't start the thread :(

0 Likes
Highlighted
Shopify Partner
9 0 2

@Fayyaz_Ahmed wrote:
{% for blog in blogs %}
  {% for article in blog.articles %}
    {{ article.title }}
  {% endfor %} 
{% endfor %}

I'm trying to do the same thing, and this is not working for me (copy/pasted your code into my template files) at all. Even just looping through blogs and printing the handle or title is not working. Does anyone know if Shopify has made changes in the last few months that would affect this? I don't see anything in the changelog.

 

Thanks.

0 Likes
Highlighted
New Member
2 0 0

@Ryan_Kelly wrote:

@Fayyaz_Ahmed wrote:
{% for blog in blogs %}
  {% for article in blog.articles %}
    {{ article.title }}
  {% endfor %} 
{% endfor %}

I'm trying to do the same thing, and this is not working for me (copy/pasted your code into my template files) at all. Even just looping through blogs and printing the handle or title is not working. Does anyone know if Shopify has made changes in the last few months that would affect this? I don't see anything in the changelog.

 

Thanks.


You have to be on the blog page. Your url must look like this: <store_url>/blogs/some-blog-handle. And not like this: <store_url>/pages/some-page

0 Likes