Home › Forums › Add-ons › Repeater Field › Limit nested repeater results to 2 › Reply To: Limit nested repeater results to 2
Hi @lsterling03
There is some smart logic in the has_sub_field
function that will look for a change in field name, and then move up or down a level.
Therefore, it is possible to break out of the second loop and continue the first.
Your code looks fine, so I’m not 100% sure why it isn’t working. What version of ACF are you using?
Thanks
E
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.