Answers for "display checkboxes wordpress acf"

PHP
1

wordpress acf get checkbox options

$values = get_field('your_field_key');
$field = get_field_object('your_field_key');
$choices = $field['choices'];
foreach( $choices as $choice => $label ){
  echo("Value: $choice , Label: $label</br>");
}
Posted by: Guest on January-28-2021

Browse Popular Code Answers by Language