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.

4 thoughts on “WPGeocode 1.0.8 Brings Postal Code Recognition to Geomarketing Intelligence

  1. The location info is completely wrong. The plugin is not accurate.
    Having a better geolocation db would fix the issue?

    Thanks

    • Yep… the database included with this plugin is the Free version of Maxmind’s Geo City Lite… you are welcome to purchase the more accurate version from them – it’s a drop-in replacement. I inquired with Maxmind about offering a pro-version of my plugin that would include their database but they are unwilling to work with me to provide that.

  2. Hi there Mike,

    This plugin is really exciting for me. I am a lay wordpress user. Please tell me, could this detect whether or not an IP / user is within 6km of a predefined location? I really need to find someway of doing this, to prevent people from home-delivering food from too far away. Thanks! Also does this plugin work in Germany? I’m in Berlin ATM. Thanks so much!

Leave a Reply

Your email address will not be published. Required fields are marked *