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
+68-3Lines changed: 68 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -103,8 +103,70 @@ This will display “Content just for everyone in Texas and California” strict
103
103
You can mix and match geography and negative geography options to create verbose logic in a single shortcode:
104
104
`[geoip-content country="US" not-city="Austin"]Content for US visitors but not for visitors in Austin[/geoip-content]`
105
105
106
+
= Limitations =
106
107
107
-
== Testing Parameters ==
108
+
There is a single limitation in the logic that lets you filter content for multiple geographic areas.
109
+
110
+
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
+
112
+
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.
114
+
115
+
== Creative Work Arounds and Hacks ==
116
+
117
+
=== Limit content to some regions of a country (or some cities of a state) ===
118
+
119
+
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
+
121
+
**BAD**
122
+
123
+
```
124
+
[geoip_content country="US" not_state="AK, HI"]Lorem ipsum dolor sit amet[/geoip_content]
125
+
```
126
+
127
+
Instead, show it to all other 48 states
128
+
129
+
**GOOD**
130
+
131
+
```
132
+
[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
+
```
134
+
135
+
=== Duplicate location names ===
136
+
137
+
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
+
139
+
**BAD**
140
+
141
+
```
142
+
[geoip_content country="US, FR" not_city="Paris"]Fly to Paris for only $199![/geoip_content]
143
+
```
144
+
145
+
The problem here is that Paris, Texas will be hidden. The solution? Just have two geoip_content shortcodes.
146
+
147
+
**GOOD**
148
+
149
+
```
150
+
[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
+
```
152
+
=== Adding an area into an ommited region ===
153
+
154
+
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.
155
+
156
+
**BAD**
157
+
158
+
```
159
+
[geoip_content continent="SA" not_country="BR" city="Brasilia"]Lorem ipsum dolor sit amet[/geoip_content]
160
+
```
161
+
162
+
**GOOD**
163
+
164
+
```
165
+
[geoip_content continent="SA" not_country="BR"]Venta de la Navidad en los adaptadores USB[/geoip_content]
166
+
[geoip_content city="Brasilia"]Venta de la Navidad en los adaptadores USB[/geoip_content]
167
+
```
168
+
169
+
== Testing Parameters ==
108
170
You can use the following URL parameters to test how your localized content will appear to visitors from various geographic locations. You can add any of the parameters below to any URL of a page using the GeoIP shortcodes or API calls:
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.
267
+
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.
$this->admin_notices[] = __( 'Please note - this plugin will only function on your <a href="http://wpengine.com/plans/?utm_source=' . self::TEXT_DOMAIN . '">WP Engine account</a>. This will not function outside of the WP Engine environment. Plugin <b>deactivated.</b>', self::TEXT_DOMAIN );
530
+
if( ! $this->geos['active'] ) {
531
+
$this->admin_notices[] = __( 'WP Engine GeoIP requires a <a href="http://wpengine.com/plans/?utm_source=' . self::TEXT_DOMAIN . '">WP Engine account</a> for full functionality. Only testing queries will work on this site.', self::TEXT_DOMAIN );
491
532
}
492
533
unset( $is_wpe );
493
534
}
@@ -499,24 +540,21 @@ public function action_admin_init_check_plugin_dependencies() {
0 commit comments