Looping through a nested group

Hi guys, I am trying to loop through a field group within a field group, but can’t seem to hit the slides group to populate the slide images. I have seen some forums online doing exactly my code but mine isn’t working, any thoughts?

Hello @LLeiberman

Yes, it can have achievable. Try the following code.

=> Module field structure:

=> Structure code:

{# Start Parent Group Repeater loop #}{% for item in module.parent_group %}<div class="parenter-group">{# START: Child repeater group loop #}{% for item2 in item.slider %}<div class="child-group">{% if item2.slider_image.src %}{% set sizeAttrs = 'width="{{ item2.slider_image.width }}" height="{{ item2.slider_image.height }}"' %}{% if item2.slider_image.size_type == 'auto' %}{% set sizeAttrs = 'width="{{ item2.slider_image.width }}" height="{{ item2.slider_image.height }}" style="max-width: 100%; height: auto;"' %}{% elif item2.slider_image.size_type == 'auto_custom_max' %}{% set sizeAttrs = 'width="{{ item2.slider_image.max_width }}" height="{{ item2.slider_image.max_height }}" style="max-width: 100%; height: auto;"' %}{% endif %}{% set loadingAttr = item2.slider_image.loading != 'disabled' ? 'loading="{{ item2.slider_image.loading }}"' : '' %}<img src="{{ item2.slider_image.src }}" alt="{{ item2.slider_image.alt }}" {{ loadingAttr }} {{ sizeAttrs }}>{% endif %}</div>{% endfor %}{# ENd: Child repeater group loop #}</div>{% endfor %}{# End: Parent Group Reppeater loop #}