Sample Repeater Group

Modified on Wed, 7 Oct, 2020 at 11:42 AM


{% assign metafield_1 = page.metafields.namespace_1.key_1  %}
{% assign metafield_2 = page.metafields.namespace_2.key_2  %}

{% for i in (0...xyz) %} // xyz is the total number of repeated instances of a group, for example 6
{% if metafield_1[i] != blank %}
{{metafield_1[i]}}
{% endif %}

{% if metafield_2[i] != blank %}
{{metafield_2[i]}}
{% endif %}
{% endfor %}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article