Support

Account

Home Forums General Issues Grabbing label and value from checkbox for a list Reply To: Grabbing label and value from checkbox for a list

  • 
    $field = get_field_object('facilities');
    echo '<ul>';
    foreach ($field['choices'] as $value => $label) {
      echo '<li>',$value,' => ',$label,'</li>';
    }
    echo '</ul>