Home › Forums › Add-ons › Repeater Field › Nested Repeater Bootstrap Tabs › Reply To: Nested Repeater Bootstrap Tabs
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
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.