Skip to content

Commit 87c0bc4

Browse files
committed
updating readme
Signed-off-by: Elliot Condon <[email protected]>
1 parent 622294e commit 87c0bc4

File tree

2 files changed

+51
-9
lines changed

2 files changed

+51
-9
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# ACF { Location Field
2+
3+
Google Maps field type for the [Advanced Custom Fields](http://wordpress.org/extend/plugins/advanced-custom-fields/) WordPress plugin.
4+
5+
-----------------------
6+
7+
### Overview
8+
9+
This WP plugin adds a Google Map Location field tpye to the Advanced Custom Fields plugin for both versions 3 & 4. This field allows you to find addresses and coordinates of a desired location.
10+
11+
The Location field provides:
12+
13+
* a search field where you can type in some coordinates or an address and hit `Enter`.
14+
* a Google map which you can click at the desired location.
15+
16+
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.
17+
18+
19+
### Compatibility
20+
21+
This plugin has been written to work for both versions 3 & 4 of ACF
22+
23+
24+
### Installation
25+
26+
This plugin can be treated as both a WP plugin and a theme include.
27+
28+
= Plugin =
29+
1. Copy the 'acf-location' folder into your plugins folder
30+
2. Activate the plugin via the Plugins admin page
31+
32+
= Include =
33+
1. Copy the 'acf-location' folder into your theme folder (can use sub folders)
34+
* You can place the folder anywhere inside the 'wp-content' directory
35+
2. Edit your functions.php file and add the following code to include the field:
36+
37+
`
38+
add_action('acf/register_fields', 'my_register_fields');
39+
40+
function my_register_fields()
41+
{
42+
include_once('acf-location/acf-location.php');
43+
}
44+
`
45+
46+
3. Make sure the path is correct to include the acf-location.php file
47+
48+
49+
### More Information
50+
51+
Please read the readme.txt file for mor information

readme.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

1010
Adds a Google Map Location field to the Advanced Custom Fields plugin for both versions 3 & 4. This field allows you to find addresses and coordinates of a desired location.
1111

12-
== Copyright ==
13-
Copyright 2011 - 2013 Lewis Carey
14-
15-
This software is NOT to be distributed, but can be INCLUDED in WP themes: Premium or Contracted.
16-
This software is distributed in the hope that it will be useful,
17-
but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19-
20-
2112
== Description ==
2213

2314
This is an add-on for the [Advanced Custom Fields](http://wordpress.org/extend/plugins/advanced-custom-fields/)

0 commit comments

Comments
 (0)