I have a repeater field in wich I have a radio field. I need to output the label and the value.
In ACF field, I putted value:label such as : red: Red Carpet green: Green leaf
I tried a piece of code :
$field = get_sub_field_object(‘field_name’);
$value = get_sub_field(‘field_name’);
$label = $field[‘choices’][ $value ];
I tried to replace the fieldname by the field_id, but it returns "Array" instead of the value.
I need to use the value in a class, and the label in a title. Can you help me ?