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.


WP Geo 3.1.1

Monday, 14th December 2009

A minor update to the WP Geo plugin.

  • Updated Danish, French and German translations.
  • Google Maps locale is set based on WordPress locale.
  • Added template tags wpgeo_longitude() and wpgeo_latitude().

Read the rest of this entry »


Creating a mashup page with a Google map of all posts

Thursday, 30th July 2009

Map of all posts

Recently, someone left a comment on how to create a mashup page with a map of all your posts. It is something I know a lot of people ask how to do so I have written a ‘how to’ create a map of all posts template tutorial.

Read the rest of this entry »