# Loop a group inside another loop group

**URL:** <https://community.hubspot.com/t/loop-a-group-inside-another-loop-group/30938>\
**Category:** CMS Development\
**Created:** [January 28, 2021, 5:33pm UTC](https://community.hubspot.com/t/loop-a-group-inside-another-loop-group/30938 "2021-01-28T17:33:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [January 29, 2021, 11:17am UTC](https://community.hubspot.com/t/loop-a-group-inside-another-loop-group/30938/4 "2021-01-29T11:17:09Z")

</div>

Hi @Farid you just need to use a nested for loop:

```lia-code-sample
{% set fils = module.fil %}
{% for fil in fils %}
 {{ fil.filter_title }}
 {% for accordion in fil.accordion %}
 ..
 {# accordion code here #}
 ..
 {% endfor %}
{% endfor %}

```

---

_[View the full topic](https://community.hubspot.com/t/loop-a-group-inside-another-loop-group/30938)._
