* Displaying a single value's Label
$field = get_field_object('field_name');
$value = get_field('field_name');
$label = $field['choices'][ $value ];
Hi, I want to retrieve de label of a selected field and it seem that the code above take from documentation do it, but Im using it with my filed_name, and is not working. I really dont know what is [‘choices’], but is not working with my field name. Some help will be awesome.
Can you confirm that you have replaced ‘field_name’ with your field’s name?
Can you paste you actual code, not the documentation?
Can you please also debug your code line by line and confirm all the data is returned and correct?