Answers for "how to add acf checkbox field inside wordpress taxonomy"

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