I have finally finished my first WordPress plugin, which is a geocoder utility for geocoding addresses and storing the longitude and latitude as custom fields. I have been looking for a plugin that did something similar, but was unable to find anything – so decided instead to challenge myself and build a WordPress plugin.

The plugin has 2 options that must be setup prior to using it, which can be set in the options page under settings:

  • Google Maps API key must be set
  • Custom Field name to be used when passing in the address

Once these two values are set, you can create a post – add the custom field key, add the value of the address and after you hit publish, the post will be saved with the new longitude/latitude values stored as custom fields (meta_long/meta_lat). You are then able to use this data to create google maps complete with markers, etc.

If you go back into a post that already has the long/lat data, then the geocoder will not be hit when you save that post. I added this feature to save on the amount of requests to the geocoder.

This WordPress Plugin is tested up to WP 3.1.

[download id=”13″]

Categories: Open SourceWordPress

1 thought on “WP Custom Field Geocoder – WordPress Plugin”

Dave · June 6, 2012 at 8:10 am

Hi mate, download link 404's

Leave a Reply

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

Related Posts

GruntJS

My First GruntJS Plugin: Bust My Cache

GruntJS is a JavaScript Task runner that has been around for about 2+ year, at least as far as I can remember. I started playing around with GruntJS which uses Node.js about a year ago, Read more…

HTML5

HTML5 Local Storage and Web Personalization

I have just finished doing some research on using HTML5 Local storage instead of Cookies for website personalization and have come to the conclusion that everyone should be using HTML5 local storage in place of Read more…

eCommerce

How to implement Bronto Email JavaScript Conversion tracking in Google Tag Manager

This tutorial will show you how to setup Bronto Advanced JavaScript Conversion tracking using Google Tag Manager. Bronto Advanced JavaScript tracking gives you more visibility to all of the products that customers are purchasing, then Read more…