WPGeocode 1.0.8 Brings Postal Code Recognition to Geomarketing Intelligence

Leverage Postal Code to Customize Your Content
Leverage Postal Code to Customize Your Content
I recently released another update to the WPGeocode to enable WordPress users to leverage additional geolocation data in their blog posts and pages. Postal codes may now be incorporated into the content of posts and pages using the shortcode [wpgc_postal_code]. For example, the postal code from which you’re computer is connected to the internet is [wpgc_postal_code].

Additional conditional shortcodes enable publishers to create customized content blocks in their posts or pages that will be displayed only to those visitors of their web site viewing from certain postal codes. For example, if you are in currently reading this from United States or Canada, you will see a customized message in the paragraph below.

[wpgc_is_country_codes country_codes=”US,CA”]

Hello and welcome to the site. I see that you’re coming in from somewhere near [wpgc_city], [wpgc_state_code].

Since you’re in [wpgc_country_name], we can even build links to custom data sources – like your own government officials, or weather data:

[/wpgc_is_country_codes] [wpgc_is_not_country_codes country_codes=”US,CA”]

Sorry, the content I have prepared is not available for [wpgc_country_name]. I can, however give you some data about your specific country…

[/wpgc_is_not_country_codes]

To understand how this is possible, let’s look at the source of this article – without translating the WPGeocode shortcodes to their data values. One thing to note that the following block is the source of this article. It is what I typed into the wordpress “Add New Post” text box. Also note that to prevent wordpress and WPGeocode from translating the shortcodes into their geocoded values, I’ve inserted spaces between the left and right brackets ([,&#93). If you want to cut / copy and paste this example, be sure to remove the spaces before the ] and after the [.

[code lang=”html”] [ wpgc_is_country_codes country_codes="US,CA" ]

Hello and welcome to the site. I see that you’re coming in from somewhere near [ wpgc_city ], [ wpgc_state_code ].

Since you’re in [ wpgc_country_name ], we can even build links to custom data sources – like your own government officials, or weather data:
<ul>
<li><a target="_new" href=http://whoismyrepresentative.com/search/zip/[ wpgc_postal_code ]>Who’s Your Representative?</a>
<li><a target="_new" href=http://weather.unisys.com/forecast.php?Name=[ wpgc_postal_code ]>What’s the weather like in [ wpgc_city ]?</a>
<li><a target="_new" href=http://airquality.webmd.com/AirQuality/Pollen.aspx?zipcode=[ wpgc_postal_code ]&cobrand=mywebmd&baseurl=http://www.webmd.com</a>How about the pollen count?</a>
</ul>
[/ wpgc_is_country_codes ] [ wpgc_is_not_country_codes country_codes="US,CA" ]

Sorry, the content I have prepared is not available for [ wpgc_country_name ]. I can, however give you some data about your specific country…

<ul>
<li><a target="_new" href=http://countrycode.org/[ wpgc_country_code ]>Countrycode.org/[ wpgc_country_code ]</a>
</ul>

[/wpgc_is_not_country_codes] [/code]

So as you can see, with WPGeocode, you can create completely customized content based on the location of your readers. Visit WPGeocode Home or WordPress WPGeocode Download for more information or to download the latest version of the plugin.

WPGeocode Plugin Version 1.0.5 Brings Multiple Location Conditional Checks

WPGeocode is a nifty WordPress Plugin that enables bloggers to leverage the location data from their readers right in pages and posts. The plugin works by enabling a set of shortcodes which either translate visitor geolocation data such as city, state or IP Address and display that information in the article or they can allow the author to setup conditional blocks of content that will be conditionally displayed to the visitor based on their location.

An example of the former use case can be seen here:

City: [wpgc_city] in your case would yield [wpgc_city]
Country Name: [wpgc_country_name] in your case would yield [wpgc_country_name]
IP Address: [wpgc_ip] in your case would yield [wpgc_ip]

If you wanted to implement conditional blocks of content, you could do something like the following example:

[wpgc_is_country_names country_names=”United States,Pakistan”]
This will display in United States or Pakistan
[/wpgc_is_country_names]

[wpgc_is_not_cities cities=”Yardley,Newtown”]
You are not viewing this page from Yardley or Newtown.
[/wpgc_is_not_cities]

Version 1.0.5 of this plugin has just been released and is available from the WordPress Plugins Repository. This update brings enhanced support for multi-location conditional checks. For example, if you wanted to display a block of content only for visitors from a list of countries such as Paris, London or New York, you could use the new short code [wpgc_is_cities cities=”Paris,London,New York”]