Plugin info

Total downloads: 49,018
Active installs: 1,000
Total reviews: 2
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 3
Last updated: 11/28/2017 (2953 days ago)
Added to WordPress: 7/24/2012 (13 years old)
Minimum WordPress version: 3.4
Tested up to WordPress version: 3.4.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2953 days ago • 2 reviews

22/100

Is Advanced Custom Fields – Location Field add-on abandoned?

Possibly abandoned (last update 2953 days ago).

Compatibility

Requires WordPress: 3.4
Tested up to: 3.4.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

ACF Media Credit
Rating 5.0/5 (3 reviews)Active installs 100
Advanced Custom Fields: Tag It Field
Rating 5.0/5 (1 reviews)Active installs 70
ACF Pro JSON Sync
Rating 0.0/5 (0 reviews)Active installs 70
Flexible Content Extended for Advanced Custom Fields
Rating 5.0/5 (4 reviews)Active installs 900
Advanced Custom Post Types
Rating 3.7/5 (3 reviews)Active installs 300
Global Custom Fields
Rating 5.0/5 (5 reviews)Active installs 200

Description

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:

  • a search field where you can type in some coordinates or an address and hit Enter.
  • a Google map which you can click at the desired location.

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.

Source Repository on GitHub

https://github.com/julienbechade/acf-location-field

Bugs, Questions or Suggestions

https://github.com/julienbechade/acf-location-field/issues

Usage

Make sure you read the Advanced Custom Fields‘s documentation first.

Back-end

The Location field comes with 3 options:

  1. The map address let you choose the value(s) to return on the front-end:
    • Coordinates & address
    • Coordinates
  2. The map center let you set the coordinates used to center the initial blank map.
  3. The map zoom.

Front-end

Retrieving the value(s) on the front-end differs according to the Map address options.

  • Coordinates & address
    $location = get_field(‘location’); echo $location[‘address’]; echo $location[‘coordinates’];
  • Coordinates
    the_field(‘location’);

Installation

The Location Field plugin can be used as a WordPress plugin or included in other plugins or themes.
There is no need to call the Advanced Custom Fields register_field() method for this field.

  • WordPress plugin
    1. Download the plugin and extract it to /wp-content/plugins/ directory.
    2. Activate the plugin through the Plugins menu in WordPress.
  • Added to Theme or Plugin
    1. Download the plugin and extract it to your theme or plugin directory.
    2. Include the location-field.php file in you theme’s functions.php or plugin file.
      include_once( rtrim( dirname( FILE ), ‘/’ ) . ‘/acf-location-field/location-field.php’ );

Frequently Asked Questions

Installation Instructions

The Location Field plugin can be used as a WordPress plugin or included in other plugins or themes.
There is no need to call the Advanced Custom Fields register_field() method for this field.

  • WordPress plugin
    1. Download the plugin and extract it to /wp-content/plugins/ directory.
    2. Activate the plugin through the Plugins menu in WordPress.
  • Added to Theme or Plugin
    1. Download the plugin and extract it to your theme or plugin directory.
    2. Include the location-field.php file in you theme’s functions.php or plugin file.
      include_once( rtrim( dirname( FILE ), ‘/’ ) . ‘/acf-location-field/location-field.php’ );

I’ve activated the plugin, but nothing happens!

Make sure you have Advanced Custom Fields installed and
activated. This is not a standalone plugin for WordPress, it only adds additional functionality to Advanced Custom Fields.

Review feed

No reviews available

Screenshots

  1. Location field and its options

    Location field and its options

  2. Location field on an edit-post page

    Location field on an edit-post page

  3. Type in a partial address or some coordinates

    Type in a partial address or some coordinates

  4. Choose to get the complete address

    Choose to get the complete address

Changelog

1.0

  • Initial release