Home › Forums › Front-end Issues › Checkbox key =>value and gettext calls › Reply To: Checkbox key =>value and gettext calls
Hi Eliot,
My problem was that I was using the [value] in the template -which was returned from the key. Problem solved by using:
$field = get_field_object('selling_points');
$points = get_field('selling_points');
foreach ( $points as $point ){
$label = $field['choices'][ $point];
echo '<li class="bullet-item">'.$label.'</li>';
}
}
(My thanks to Micheal on your support staff)
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.