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.
<r:blog:articles> <r:each> <!-- This is the content of each article --> </r:each> </r:blog:articles>
You can also use
r:each as an attribute on other tags:
<r:children:each> <!-- This is the content of each child page --> </r:children:each>
r:each is the same as
r:loop—they are both forms of iteration. Check out the documentation for
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?