I am using advance custom field plugin in my wordpress website. I have create a template page in my website and set it for home page.
In ACF plugin I create a new lable by name travel form and in which i add a fields by name locations. please check below screenshot
And on my template page i am calling it by name locations throught ACF function but i am not able to fetch it
this is my code
<?php /* Template Name: Home Page */ $field = get_field_object('locations'); print_r($field); die; ?>
where is my mistake please tell me. I am not able to get all locations.
Read more here:: About advance custom field geting value