I'm using the Advance Custom Fields plugin in my WordPress website. I have created a template page and set it for home page. In ACF plugin I created a new Field Group called Travel Form and in it a field called locations. please check below screenshot
In my template I'm calling it by name locations throught ACF function but I'm 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'm not able to get all locations.