Skip to main content


The r:each tag enables you to loop through a series of items and format them according to the markup you've specified within the r:each tag. These items can be pages, files, or blog posts.


        <!-- This is the content of each article -->

Example 2:

You can also use r:each as an attribute on other tags:

    <!-- This is the content of each child page -->


In Liquid, r:each is the same as r:loop—they are both forms of iteration. Check out the documentation for r:loop/for to learn more about for loops in Liquid.

Last updated on March 15, 2021.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email for help or use the form on the request help page.