so the reason is that you have nested repeaters here. I’m not going to recreate all of your code, but the second loop needs to look something like this
// outer repeater loop
if (have_rows('menu_sections')) {
while (have_rows('menu_sections')) {
the_row();
// nested repeater loop
if (have_rows('section_items')) {
while (have_rows('section_items')) {
the_row();
// output for section item here
}
}
// end nested repeater loop
}
}
// end outer repeater loop