WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Advanced Custom Fields: Coordinates

Adds a coordinates map field to Advanced Custom Fields. This field allows you to find the coordinates of a location.

Usage

When you create a new custom field with ACF, set the field type to Coordinates map. Now the coordinates chooser should show up when you edit a post with your custom fields.

To get the coordinates data in your frontend, simply request the field value and in return you get the latitude, longitude and the address.

<?php
$values = get_field('*****FIELD_NAME*****');
$lat = $values['lat'];
$lng = $values['lng'];
$address = $values['address'];

Address is not the exact, correct name of the location. Instead it is the term you wrote when searching for the coordinates.

Requires: 3.4.0 or higher
Compatible up to: 3.6.1
Last Updated: 2013-9-17
Downloads: 1,217

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1