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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.