Home › Forums › Add-ons › Repeater Field › Output repeater field with radio button sub fields › Reply To: Output repeater field with radio button sub fields
Q1: In order to get the labels you’d have to also fetch the field object.
this can be done with
get_field_object(). It will be an array containing the field label as well as the choices with key => value pairs (and more).
Q2: I believe what you want is to sort the repeater field based on the radio fields. Have a look at this: http://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/
That might be enough to get you going!
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!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.