How to create a custom marker image for WP Geo

Monday, 19th July 2010

Since the 3.2 release of WP Geo it is possible to easily add new marker icons via a filter, either in your theme’s functions.php file or as a plugin.

I would suggest that if you are creating a marker icon specifically for your theme you add it your theme’s functions.php file. However, it is possible to create a set of markers packaged in a single plugin – ideal if you want to share your icons by releasing them on the WordPress plugin repository. If you do this please tag it as ‘wp-geo’ to make it easier to find in the plugin repository.

Read the rest of this entry »


WP Geo 3.2

Sunday, 18th July 2010

I’ve just released this WP Geo release while attending WordCamp UK.

This version now works just fine with WordPress 3.0 and supports custom post types that use the WordPress user interface – for example, using the Custom Post Type UI plugin – you can add support for custom post types on the WP Geo settings page. You can also add support for a specific post type using the add_post_type_support( <post-type>, ‘wpgeo’ ) function.

There are two new filters so that you have more control of customising marker icons – wpgeo_markers and wpgeo_marker_icon. This will allow you to easily override any marker image so you could potential show different marker images for different posts or categories.

There are also some addition template tags – see the change log below.

There are also many minor fixes and and support for Simplified Chinese language.

  • Fix for tooltip not working in WordPress 3.0.
  • Fix to allow maps to be shown on tag archive pages by Lee Willis.
  • Fix for default_map_control setting not being saved correctly.
  • Ensure default map location is populated, otherwise map does not display when editing a post in the admin.
  • Don’t try to show maps in feeds.
  • Make sure includes are only included once.
  • Added support for custom post types in WordPress 3.0.
  • Added wpgeo_title() and get_wpgeo_title() template tags.
  • Added wpgeo_post_map() and get_wpgeo_post_map() template tags.
  • Added wpgeo_check_version() and wpgeo_check_db_version() for checking WP Geo version.
  • Added ‘wpgeo_markers‘ filter in preparation for being able to add new marker icons.
  • Added ‘wpgeo_marker_icon‘ filter. Allows you to override a marker icon based on post data and context.
  • Added Simplified Chinese language.
  • Language files updated.

Download the latest version of  WP Geo from the WordPress plugin repository.


Keep updated – Join the WP Geo mailing list

Friday, 25th June 2010

If you are a developer, translator,  or want to test drive the development and beta versions of WP Geo, make sure you stay in the loop by signing up to the mailing list.

Click here to sign up to the mailing list…

You should sign up to this list if:

  1. You are interested in testing out beta and development versions of WP Geo and providing feedback.
  2. You develop a plugin that works with WP Geo and need to keep up-to-date with development.
  3. You are interested in translating WP Geo – I’ll let you know via this list when there is new text to translate.

This group is NOT for:

  1. General feature requests.
  2. Issues/bugs relating to a current release WP Geo – development/beta discussion only please.
  3. Help getting stuff to work.

In these instances please post in the forum.


WP Geo 3.1.4

Saturday, 27th March 2010

Thank you for all your feedback about the bugs in 3.1.3

They should now be fixed and in addition 3.1.4 contains the follow fixes, changes and enhancements.

Improvements for users:

  • Now uses new Google 3D map control.
  • Adding text colour style to tooltip text in case default text colour is white.
  • Prevent map from aligning marker centre on zoom. Added a link to centre manually instead.
  • Added option to save post map centre point.
  • Added wpgeo_map() and get_wpgeo_map() functions to display custom maps based on a WordPress query.
  • Language files updated.

…and if you’re a developer:


Please try out 3.1.3.beta

Wednesday, 10th March 2010

Please could you download and test WP Geo 3.1.3.beta

A lot of the code has been restructured – the beginning of trying to make the plugin more extendable – so I would appreciate it if you could try it out and post any bugs (not feature requests) below.

Some of the more notable changes include:

  • Uses latest version of Google Maps API (including the new controller).
  • Added a filter ‘wpeo_point_title’ to override the marker tooltip for posts.
  • Added wpgeo_map() function to display custom maps based on a WordPress query.