I have a field with cities in ACF, Its a multi-select (ajax enabled ). So a user can choose different cities (delivery areas in this case).

With this cities i want to populate woocommerce checkout field. So i need an array with the advanced custom fields selected cities only.

I try to get the object but i get all cities and not the selected ones. How can i do this? i tried:

$field_name = "acf_cities";
$field = get_field_object($field_name);

echo $field['label'] . ': ' . $field['value'];
$a = get_field_object('field_5a18ee424e883', ['4229'], [false], 

1 Answer 1



$value = get_field( "field_5a18ee424e883", 4229 );
print_r ($value);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.