You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.txt
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ This plugin will only function on your [WP Engine](http://wpengine.com/plans/?ut
38
38
39
39
== Installation ==
40
40
41
-
1. Upload `geoip` to the `/wp-content/plugins/` directory
41
+
1. Upload `wpengine-geoip` to the `/wp-content/plugins/` directory
42
42
2. Activate the plugin through the 'Plugins' menu in WordPress
43
43
44
44
Please view the 'Other Notes' tab to see all of the available GeoIP shortcodes
@@ -51,12 +51,18 @@ You can use any of the following location variable shortcodes to return the vari
51
51
52
52
2) Country: `[geoip-country]`
53
53
54
-
3) Region (State): `[geoip-region]`
54
+
3) Region: `[geoip-region]`
55
+
56
+
* In the US region will return States
57
+
* In Canada region will return Providences
58
+
* Outside the US/CA this will return a Region number. Please note region numbers are not unique between countries
55
59
56
60
4) City: `[geoip-city]`
57
61
58
62
5) Postal Code: `[geoip-postalcode]`
59
63
64
+
* This variable is only available in the US due to limitations with the location data GeoIP uses
65
+
60
66
6) Latitude: `[geoip-latitude]`
61
67
62
68
7) Longitutde: `[geoip-longitude]`
@@ -110,11 +116,11 @@ There is a single limitation in the logic that lets you filter content for multi
110
116
You can progressively limit the area that content is shown in. But once your content is hidden from an area, a subset of that area can't be added back in.
111
117
112
118
For example,
113
-
If I limit my image to Europe, then hide my image from Great Britain, I can't go back and show it to London.
119
+
If I limit my content to Europe, then limit my content from Great Britain, I can't go back and show it to London.
114
120
115
-
== Creative Work Arounds and Hacks ==
121
+
= Creative Work Arounds =
116
122
117
-
=== Limit content to some regions of a country (or some cities of a state) ===
123
+
== Limit content to some regions of a country (or some cities of a state) ==
118
124
119
125
You want to show an offer for free shipping to every state in the US *but* Alaska and Hawaii. You may be inclined to write something like
120
126
@@ -132,7 +138,7 @@ Instead, show it to all other 48 states
132
138
[geoip_content state="AL, AZ, AR, CA, CO, CT, DE, FL, GA, ID, IL, IN, IA, KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM, NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA, WV, WI, WY"]Free shipping on all orders over $50![/geoip_content]
133
139
```
134
140
135
-
=== Duplicate location names ===
141
+
== Duplicate location names ==
136
142
137
143
You want to show discount airfare on a flight to Paris, France. The content should show to all of the US and France, but not Paris itself.
138
144
@@ -149,7 +155,7 @@ The problem here is that Paris, Texas will be hidden. The solution? Just have tw
149
155
```
150
156
[geoip_content country="FR" not_city="Paris"]Fly to Paris for only $199![/geoip_content][geoip_content country="US"]Fly to Paris for only $199![/geoip_content]
151
157
```
152
-
=== Adding an area into an ommited region ===
158
+
== Adding an area into an omitted region ==
153
159
154
160
You want to show an ad written in Spanish to all of South America except for Brazil. Brasilia, however, has enough Spanish speakers that you want to include Brasilia.
This version adds the following features: fixed a small issue with the content shortcode filters, allows the plugin to run on development sites. This update is recommended for all GeoIP users.
275
+
= 1.1.2 =
276
+
- Fixes logic for nested parameter selectors in content shortcode
277
+
- Now supports nested shortcodes. You can use shortcodes inside the [geoip-content] shortcode
0 commit comments