Home › Forums › Add-ons › Repeater Field › How to get the count of a child field inside a nested repeater › Reply To: How to get the count of a child field inside a nested repeater
sorting a repeater field is not an easy thing to do, even more so with multiple nested repeaters. You’d have to somehow do it as an array and loose all ability to use have_rows
loops. I don’t even know if it’s possible.
There is a basic idea here https://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/
I have also used usort, but never for anything with nested values so I can’t even say if that’s possible.
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.