{"id":19142,"date":"2012-07-24T12:40:51","date_gmt":"2012-07-24T12:40:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/advanced-custom-fields-location-field-add-on\/"},"modified":"2012-08-01T14:54:59","modified_gmt":"2012-08-01T14:54:59","slug":"advanced-custom-fields-location-field-add-on","status":"publish","type":"plugin","link":"https:\/\/ta-lk.wordpress.org\/plugins\/advanced-custom-fields-location-field-add-on\/","author":4007130,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"trunk","tested":"3.4.2","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Advanced Custom Fields - Location Field add-on","header_author":"Julien Bechade","header_description":"","assets_banners_color":"ebe8d4","last_updated":"2017-11-28 19:17:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/julienbechade\/acf-location-field","header_author_uri":"http:\/\/julienbechade.com\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":49394,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>n\/a<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"580288","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-4.png":{"filename":"screenshot-4.png","revision":"1777184","resolution":"4","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1777184","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1777184","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1777184","resolution":"1","location":"plugin"}},"screenshots":{"1":"Location field and its options","2":"Location field on an edit-post page","3":"Type in a partial address or some coordinates","4":"Choose to get the complete address"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,1391,527,2009,2240],"plugin_category":[49],"plugin_contributors":[79822,79823],"plugin_business_model":[],"class_list":["post-19142","plugin","type-plugin","status-publish","hentry","plugin_tags-admin","plugin_tags-advanced","plugin_tags-custom","plugin_tags-custom-field","plugin_tags-field","plugin_category-maps-and-location","plugin_contributors-julienbechade","plugin_contributors-omicron7","plugin_committers-julienbechade"],"banners":{"banner":"https:\/\/ps.w.org\/advanced-custom-fields-location-field-add-on\/assets\/banner-772x250.png?rev=580288","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/advanced-custom-fields-location-field-add-on_ebe8d4.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-custom-fields-location-field-add-on\/trunk\/screenshot-1.png?rev=1777184","caption":"Location field and its options"},{"src":"https:\/\/ps.w.org\/advanced-custom-fields-location-field-add-on\/trunk\/screenshot-2.png?rev=1777184","caption":"Location field on an edit-post page"},{"src":"https:\/\/ps.w.org\/advanced-custom-fields-location-field-add-on\/trunk\/screenshot-3.png?rev=1777184","caption":"Type in a partial address or some coordinates"},{"src":"https:\/\/ps.w.org\/advanced-custom-fields-location-field-add-on\/trunk\/screenshot-4.png?rev=1777184","caption":"Choose to get the complete address"}],"raw_content":"<!--section=description-->\n<p>This is an add-on for the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a>\nWordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed\nand activated.<\/p>\n\n<p>The Location field provides:<\/p>\n\n<ul>\n<li>a search field where you can type in some coordinates or an address and hit <code>Enter<\/code>. <\/li>\n<li>a Google map which you can click at the desired location.<\/li>\n<\/ul>\n\n<p>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.<\/p>\n\n<h4>Source Repository on GitHub<\/h4>\n\n<p>https:\/\/github.com\/julienbechade\/acf-location-field<\/p>\n\n<h4>Bugs, Questions or Suggestions<\/h4>\n\n<p>https:\/\/github.com\/julienbechade\/acf-location-field\/issues<\/p>\n\n<h4>Usage<\/h4>\n\n<p>Make sure you read the <a href=\"http:\/\/www.advancedcustomfields.com\/docs\/getting-started\/\">Advanced Custom Fields<\/a>'s documentation first.<\/p>\n\n<p><strong>Back-end<\/strong><\/p>\n\n<p>The Location field comes with 3 options:<\/p>\n\n<ol>\n<li>The map address let you choose the value(s) to return on the front-end:\n\n<ul>\n<li>Coordinates &amp; address<\/li>\n<li>Coordinates<\/li>\n<\/ul><\/li>\n<li>The map center let you set the coordinates used to center the initial blank map.<\/li>\n<li>The map zoom.<\/li>\n<\/ol>\n\n<p><strong>Front-end<\/strong><\/p>\n\n<p>Retrieving the value(s) on the front-end differs according to the Map address options.<\/p>\n\n<ul>\n<li>Coordinates &amp; address\n $location = get_field('location'); echo $location['address']; echo $location['coordinates']; <\/li>\n<li>Coordinates \n the_field('location');<\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>The Location Field plugin can be used as a WordPress plugin or included in other plugins or themes.\nThere is no need to call the Advanced Custom Fields <code>register_field()<\/code> method for this field.<\/p>\n\n<ul>\n<li>WordPress plugin\n\n<ol>\n<li>Download the plugin and extract it to <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress.<\/li>\n<\/ol><\/li>\n<li>Added to Theme or Plugin\n\n<ol>\n<li>Download the plugin and extract it to your theme or plugin directory.<\/li>\n<li>Include the <code>location-field.php<\/code> file in you theme's <code>functions.php<\/code> or plugin file.<br \/>\n   include_once( rtrim( dirname( <strong>FILE<\/strong> ), '\/' ) . '\/acf-location-field\/location-field.php' );<\/li>\n<\/ol><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>The Location Field plugin can be used as a WordPress plugin or included in other plugins or themes.\nThere is no need to call the Advanced Custom Fields <code>register_field()<\/code> method for this field.<\/p>\n\n<ul>\n<li>WordPress plugin\n\n<ol>\n<li>Download the plugin and extract it to <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress.<\/li>\n<\/ol><\/li>\n<li>Added to Theme or Plugin\n\n<ol>\n<li>Download the plugin and extract it to your theme or plugin directory.<\/li>\n<li>Include the <code>location-field.php<\/code> file in you theme's <code>functions.php<\/code> or plugin file.<br \/>\n   include_once( rtrim( dirname( <strong>FILE<\/strong> ), '\/' ) . '\/acf-location-field\/location-field.php' );<\/li>\n<\/ol><\/li>\n<\/ul><\/dd>\n<dt>I've activated the plugin, but nothing happens!<\/dt>\n<dd><p>Make sure you have <a href=\"http:\/\/wordpress.org\/extend\/plugins\/advanced-custom-fields\/\">Advanced Custom Fields<\/a> installed and\nactivated. This is not a standalone plugin for WordPress, it only adds additional functionality to Advanced Custom Fields.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Adds a Location field to Advanced Custom Fields. This field allows you to find addresses and coordinates of a desired location.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/19142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=19142"}],"author":[{"embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/julienbechade"}],"wp:attachment":[{"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=19142"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=19142"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=19142"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=19142"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=19142"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ta-lk.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=19142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}