Home › Forums › Add-ons › Repeater Field › Grouping and Repeateing Repeater output, For an Accordian grid › Reply To: Grouping and Repeateing Repeater output, For an Accordian grid
To do it all in one loop you need build your html in strings rather than output it. Store each section in a different variable and then echo these strings after your loop. There isn’t any way to output two different section of html in a single loop other than this.
The only other choice you have is to construct multiple loops and loop over the rows multiple times.
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.