Adds a Location field to Advanced Custom Fields. This field allows you to find addresses and coordinates of a desired location.
This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed and activated.
The Location field provides:
In both cases, Google will find the location and return the coordinates and the complete address, if you want it complete. A marker will be added at the desired location.
Make sure you read the Advanced Custom Fields's documentation first.
The Location field comes with 3 options:
Retrieving the value(s) on the front-end differs according to the Map address options.
$location = get_field('location'); echo $location['address']; echo $location['coordinates'];