Home › Forums › Add-ons › Repeater Field › Repeater to create bootstrap tabs? › Reply To: Repeater to create bootstrap tabs?
There are 3 choices to output the parts of a repeater into different sections.
1) Loop through the repeater twice. After the first loop call the function reset_rows()
to reset the repeater.
2) Loop through the repeater once show the tabs and store the information to be shown later in an array. Then loop through the array to show the second parts.
3) loop through the repeater once show the tabs and build an HTML string for content parts then echo the content after the last tab.
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.