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.

Create a custom sidebar for each page or post with this Graceful Sidebar WordPress Plugin

A friend and fellow poker fan recently reached out with a wordpress question… She was looking for a way to customize a client’s sidebar content based on the page or post currently being displayed.  

Well – it seemed logical so I dug in for a few minutes and came up with the Graceful Sidebar Plugin.  The plugin is very simple – but accomplishes the initial goals.  To use the plugin, simply install it, activate it and drag the Graceful Sidebar widget to your theme’s sidebar.  Then, create two custom fields in the post or page whose sidebar you want to customize – “graceful_title” and “graceful_content”… that’s it.

Visit the Graceful Sidebar Plugin page for more information and to download.