Home › Forums › Add-ons › Repeater Field › Repeater field and checkbox › Reply To: Repeater field and checkbox
Hi @whoaloic
Well, in that case use get_sub_field_object()
instead of get_sub_field()
function. i.e.
$sub_field_object = get_sub_field_object('checkbox_field_name');
$value = $sub_field_object['value']; // values
$label = $sub_field_object['label']; // labels
Have a look at the documentation for get_sub_field_object() for more info: http://www.advancedcustomfields.com/resources/get_sub_field_object/
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.