Looking at the code you supplied, your nesting of repeater loops is wrong and I can’t really tell how to fix it in a short time. Here’s what I can see and point out.
On line 50 you have a repeater loop. This loop ends at line 64. In order to have a nested repeater loop it would need to be inside of this loop, it is not.
On line 68 you start a foreach loop on the results of the repeater loop. This is not a repeater loop, this is a loop on the array. The call to
the_row() is not appropriate in this loop. I cannot say what errors this is causing. You’re nested loop that your talking about is on 97 is inside of this foreach loop and not nested in the first repeater loop.
My suggestion would be to put the nested repeater loop inside the first repeater loop and add the ‘table_contents’ repeater content into a nested array element of the $rows array you are creating there. Then in your second loop to create a nested foreach loop for this array element. Also make sure you remove the call to
the_row() that should not be there.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.