Title: Advanced Custom Fields &#8211; Location Field add-on
Author: julienbechade
Published: <strong>جُلائی 24, 2012</strong>
Last modified: اگست 1, 2012

---

پلگ انز ئے شوھاز کن

![](https://ps.w.org/advanced-custom-fields-location-field-add-on/assets/banner-
772x250.png?rev=580288)

اے پلگ ان **hasn’t گوں ورڈپریس ءِ نوکیں 3 مزنیں ریلیزاں** آزمائش کنگ بوتگ۔ اے دگہ
برجاہ دارگ یا حمایت نہ کنگ بیت ءُ ورڈپریس ءِ نوکیں ورژنانی گوں کارمرز کنگ ءِ وھد
ءَ مطابقت ءِ جیڑھ بوت کنت۔

![](https://s.w.org/plugins/geopattern-icon/advanced-custom-fields-location-field-
add-on.svg)

# Advanced Custom Fields – Location Field add-on

 [julienbechade](https://profiles.wordpress.org/julienbechade/) ئے وسیلہ ئا

[ایرگیج](https://downloads.wordpress.org/plugin/advanced-custom-fields-location-field-add-on.zip)

 * [سرجمیں](https://bcc.wordpress.org/plugins/advanced-custom-fields-location-field-add-on/#description)
 * [جائزہ](https://bcc.wordpress.org/plugins/advanced-custom-fields-location-field-add-on/#reviews)
 *  [انسٹالیشن](https://bcc.wordpress.org/plugins/advanced-custom-fields-location-field-add-on/#installation)
 * [دیمروی](https://bcc.wordpress.org/plugins/advanced-custom-fields-location-field-add-on/#developers)

 [کمک](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/)

## سرجمیں

This is an add-on for the [Advanced Custom Fields](https://wordpress.org/extend/plugins/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](http://www.advancedcustomfields.com/docs/getting-started/)‘
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:
 2.  * Coordinates & address
     * Coordinates
 3. The map center let you set the coordinates used to center the initial blank map.
 4. 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’);

## اسکرین شاٹ

[⌊Location field and its options⌉⌊Location field and its options⌉[

Location field and its options

[⌊Location field on an edit-post page⌉⌊Location field on an edit-post page⌉[

Location field on an edit-post page

[⌊Type in a partial address or some coordinates⌉⌊Type in a partial address or some
coordinates⌉[

Type in a partial address or some coordinates

[⌊Choose to get the complete address⌉⌊Choose to get the complete address⌉[

Choose to get the complete address

## انسٹالیشن

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’ );

## جُست ءُ پُرس

  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](https://wordpress.org/extend/plugins/advanced-custom-fields/)
installed and
 activated. This is not a standalone plugin for WordPress, it only
adds additional functionality to Advanced Custom Fields.

## جائزہ

اے پلگ ان ئے ہچ جائزہ نیستیں

## کمک کنوک & دیمروئی کنوک

“Advanced Custom Fields – Location Field add-on” اوپن سورس سافٹ ویئر اِنت۔ اے پلگ
ان ءِ تہا رند ءِ مردماں وتی کرد پیلو کتگ۔

کمک کار

 *   [ julienbechade ](https://profiles.wordpress.org/julienbechade/)
 *   [ Brian Zoetewey ](https://profiles.wordpress.org/omicron7/)

[“Advanced Custom Fields – Location Field add-on” ءَ وتی زبان ءَ رجانک کن اِت۔](https://translate.wordpress.org/projects/wp-plugins/advanced-custom-fields-location-field-add-on)

### دیمروئی ءِ تہا دلچسپی داریت؟

[کڈ ءَ براؤز کن اِت](https://plugins.trac.wordpress.org/browser/advanced-custom-fields-location-field-add-on/)،
[SVN ءِ ذخیرہ](https://plugins.svn.wordpress.org/advanced-custom-fields-location-field-add-on/)
ءَ بچار اِت، یا [دیمروئی ءِ لاگ](https://plugins.trac.wordpress.org/log/advanced-custom-fields-location-field-add-on/)
ءَ [RSS](https://plugins.trac.wordpress.org/log/advanced-custom-fields-location-field-add-on/?limit=100&mode=stop_on_copy&format=rss)
ءِ وسیلہ ءَ سبسکرائب بہ کن اِت۔

## چینج لاگ

#### 1.0

 * Initial release

## میٹا

 *  ورژن **1.0**
 *  گڈی رند ءَ نوک کنگ بوتگ **9 سال پیشا**
 *  فعالیں تنصیبات **900+**
 *  ورڈپریس ورژن ** 3.4 یا گیشتر **
 *  **3.4.2** ءَ داں آزمائش کنگ بوتگ۔
 *  زبان
 * [English (US)](https://wordpress.org/plugins/advanced-custom-fields-location-field-add-on/)
 * ٹیگ
 * [admin](https://bcc.wordpress.org/plugins/tags/admin/)[advanced](https://bcc.wordpress.org/plugins/tags/advanced/)
   [custom](https://bcc.wordpress.org/plugins/tags/custom/)[custom field](https://bcc.wordpress.org/plugins/tags/custom-field/)
   [field](https://bcc.wordpress.org/plugins/tags/field/)
 *  [دیمروئی کتگیں ندارگ](https://bcc.wordpress.org/plugins/advanced-custom-fields-location-field-add-on/advanced/)

## درجہ بندی

 5 چہ 5 استاراں

 *  [  2 5-ستارہ جائزہ     ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/?filter=5)
 *  [  0 4-ستارہ جائزہ     ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/?filter=4)
 *  [  0 3-ستارہ جائزہ     ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/?filter=3)
 *  [  0 2-ستارہ جائزہ     ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/?filter=2)
 *  [  0 1-ستارہ جائزہ     ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/?filter=1)

[تئی جائزہ](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/#new-post)

[کلیں جائزہ ئا بہ گند](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/reviews/)

## کمک کار

 *   [ julienbechade ](https://profiles.wordpress.org/julienbechade/)
 *   [ Brian Zoetewey ](https://profiles.wordpress.org/omicron7/)

## کمک

چیزے گشگ ءِ ھاترا رستگ؟ کمک لوٹ ئے؟

 [سپورٹ فورم ئا بہ گند](https://wordpress.org/support/plugin/advanced-custom-fields-location-field-add-on/)