List all Blogs

New Member
7 0 0

Is there a way to list all blogs? For example:

 

  <ul>
    {% for blog in blogs  %}
     <li>{{ blog.title }}</li>
    {% endfor %}
  </ul>

 

Thanks!

0 Likes
Excursionist
124 1 4

Hello,

 

Yes, there is a way to list all blogs, Below code will work for you ,

 

{% for link in linklists.blogs.links %}
{% assign blog = link.object %}
{% for article in blog.articles %}
{{ article.title }}
{% endfor %}
{% endfor %}

 

Thank you 

also, If you like my answer then please like & for helpful then please accept as a solution.

Best Regards,
Shopify Expert
Atique/99coders
Email: atique@99coders.co
Skype: info@99coders.co
0 Likes