I’m using Advanced Custom Fields with post-type. I have some select custom fields, and I want to show all the label choices from each field.
I’ve tried this way.
The right way is to use acf_maybe_get_field function, just like that:
acf_maybe_get_field( 'field_name', false, false );
The arguments are: field name, post id (defaults to current post) and the most important strict which defaults to true, but we set it to false here to get field object even when it does not yet exist for the post.
Refers to Get ACF field key programmatically by field name