Support

Account

Home Forums Front-end Issues ACF: How to get the label of a taxonomy Checkbox Field? Reply To: ACF: How to get the label of a taxonomy Checkbox Field?

  • 
    $values = get_field('checkbox_field');
    $field = get_field_object('checkbox_field');
    $choices = $field['choices'];
    foreach ($choices as $value => $label) {
      if (in_array($choice, $values)) {
        echo 'LABEL: ',$label,': VALUE',$value,'<br />';
      }
    }