How to get the get the select values created by ACF plugin in wordpress
In this bit of code: $field = get_field_object(‘field_51d3f9c3f5554’); $field[‘choices’] will contain an array of the available choices for that field, not the currently selected value, $field[‘value’] contains the currently selected value. However, using get_field_object when all you want is the currently selected value is unnecessary. for the correct use of get_field(), read the documentation carefully … Read more