WP Geo

Plugin version: 2.0
Requires WordPress version: 2.5+
Tested up to WordPress version: 2.5
Download: WP Geo                         

Download WP Geo Version 2.0

Downloaded a total of 95 times

Description

WP Geo is a WordPress plugin which enables you to easily attribute a location and map to a post or page.

If you experience any bugs with the plugin or have features you would like to suggest, please submit an issue on the WP Geo Google Project page.

Features

  • NEW - Show post maps on category and archive pages.
  • NEW - Set default width and height for maps.
  • NEW - Shortcode [wp_geo_map] to add map within your post content.
  • Select type of map; normal, satellite etc.
  • Select wether maps appear at the top or bottom of posts (or not at all).
  • Allows you to attribute a physical location to your post or page.
  • To set a location for your post/page you can search for a location, click on the map or type in latitude and longitude coordinates manually.
  • Integrated with Google Maps.
  • Feature maps on category pages to show locations for category posts.
  • Styled to fit seemlessly into the latest version of the WordPress admin.

Installation

1. Download the archive file and uncompress it.
2. Put the “wp-geo” folder in “wp-content/plugins”
3. Enable the plugin in WordPress by visiting the “Plugins” menu and activating it.
4. Go to the Settings page in the admin and enter your Google API Key and customise the settings.

(you can sign up for a Google API Key here)

WP Geo will appear on the edit post and edit page screens.
If you set a location, a Google map will automatically appear at the top of that post or page.

You can add a map you your category pages to which will display the locations of any posts within that category. Simply enter <?php WPGeo::categoryMap(); ?> into your category template where you would like the map to appear.

Upgrading

If upgrading from a previous version of the plugin:

  1. Deactivate and reactivate the plugin to ensure any new features are correctly installed.
  2. Visit the settings page after installing the plugin to customise any new options.

Donate

If you like using this plugin, please consider making a donation - particularly if you are using it for a commercial application.
Many thanks.


Future Plans

  • Option to set zoom level of map.
  • Show map of recent locations (with links to posts?).

Version Log

You can track changes to the plugin in the wordpress plugin SVN.

WP Geo 2.0

  • Added options to display posts maps on category and archive pages.

WP Geo 1.3

  • Added options to set default width and height for maps.

WP Geo 1.2

  • Added [wp_geo_map] Shortcode to add map within post content.

WP Geo 1.1

  • Added option to set map type.
  • Added option to set wether maps appear at the top or bottom of posts.

License

© 2008 Ben Huson

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

http://www.gnu.org/licenses/gpl.html

19 Responses to “WP Geo”

  1. 19
    Jakub Says:

    Can you post some screenshots? That would be great :)
    Thanks, might help new users I think.

  2. 18
    Nsk Says:

    This is great!!! Thank you very much.
    I just copied & pasted the address (even in Japanese it’s ok), I have the map on the post! So easy to add a map!
    First I thought it would be nice to show a small comment on the map by clicking the point, but on the second thought, it’s better to write it in the article to make it seachable. So I’m using this nice plugin as it is (except the default zoom, cause my country is small).
    Thank you so much again.

  3. 17
    Edde Says:

    The pop-ups, including text (and images), you see in google maps are nice. But only since you’re asking :)

    So far it’s a nice plugin as it is! Don’t get me wrong. Thanks!

  4. 16
    Ben Huson Says:

    Edde,

    No, you have done nothing wrong. The category level map currently only displays the post locations. I guess they should be clickable to link through to the post. Any other ideas?

  5. 15
    Edde Says:

    I’ve added to a category template (category-20.php). The added locations show on the map, but are not clickable or anything. Did I do something wrong?

  6. 14
    Ben Huson Says:

    Thanks dwrz,

    I am currently working on the ability to show maps correctly at category and archive level - it requires some reworking a chunk of the plugin but hoping to be able to release this functionality soon.

    PS: I have now fixed the donation button, thanks.

  7. 13
    dwrz Says:

    Hi,

    Great plugin. I am having the same “issue” as Alig. It would be great to have the option for the category and archive level. Would this also make the map visible on the “recent posts” level? That would also be a nice feature. At the moment I have my site on “recent posts” and what I get is a nice 300px white area where the map should be, for every post. Not really very fluid. :\

    Also, I tried donating, but all the button does is bring me to the PayPal site. What info should one use?

    Thanks,
    dwrz

  8. 12
    Ben Huson Says:

    Geof, as is appears to be working with the standard Kubrick theme, it would appear it is something to do with the new Monotone theme (revision 1028) you are using. I’ll look into it…

  9. 11
    Geof F. Morris Says:

    Hmmmm … tried all that, to no avail. :(

    I’ll try the update, although I’m not seeing it out there yet…

  10. 10
    Ben Huson Says:

    Geof,

    Checked out your web site. The map code all seems to be there OK but for some reason it is not writing the <div> (where the map will appear) into your post.

    Try deactivating and reactivating the plugin. Then in the WordPress admin go to the WP Geo Settings and check that ‘Show Post Map’ is set to either ‘top’ or ‘bottom’. Save these settings (even if they are already selected) and see if that works.

    PS. I have just released another minor update of the plugin which allows you to include the map within your post content instead of just at the top or bottom using [wp_geo_map].

  11. 9
    Geof F. Morris Says:

    Hey, Ben … I’m trying to use this on a new site I just started, geophlog.net. It’s not inserting the map for me. I’m using the WordPress.com Monotone theme for photologs and Akismet, but nothing else plugin or theme-wise. Any ideas? Maybe some of the stuff in Monotone is slagging it.

  12. 8
    Ben Huson Says:

    Map sizing coming soon….

  13. 7
    Don Says:

    Hey Ben, GREAT PLUGIN!

    Is there any way to set the size of the map to be something specific (ie: 300×300)?

  14. 6
    Ben Huson Says:

    Hi Pilooz,

    The URL for your Google API Key will need to be the domain name for your live web site on which WordPress is running. For example, for this site the URL would be http://www.benhuson.co.uk/

    - Ben

  15. 5
    Pilooz Says:

    Hi Ben,
    Great job. I’ve just a noob question;)
    What is the url you have to give to generate google key ?
    Url from back-office ? from front-office ?

  16. 4
    Dan Says:

    Hey Ben, this is great!

    I really love the simplicity you’ve built into this plugin! I’m using it for a travel blog this summer. For me it would be perfect if the map could appear on the front page. That way friends and family could see where I was without having to click.

    It might be nice to be able to set the pixel size, and zoom level of the map, but that would just be icing on the cake.

    Thanks again!

  17. 3
    Mike Says:

    I installed my blog 3 years ago, yet awaited a plugin such as WP Geo. My blog is mostly focused on geoscience-related topics, and for high literary impact, I was seeking a plugin that would indicate localities on the planet Earth for which I wanted to blog about. And WP Geo does this. Installation was easy, hassle-free, and worked “out of the box” the first time.

    To put it simply - sweet!

    (PS: I would rather that the map does NOT appear at the category and archive levels - so when and if you update WP Geo, please allow us endusers to select those levels of map viewing as an option.)

  18. 2
    Ben Huson Says:

    Hi Alig,

    At the moment the map on shows on single post pages.
    I am hoping to shortly add the option of being able to show it automatically at category and archive level too.

    If you are comfortable editing your theme’s templates, you could add the following bit of code to your category template (works best above all the posts) which will show a single map with markers for all the posts on that page.

    < ?php WPGeo::categoryMap(); ?>

    - Ben

  19. 1
    Alig Says:

    Hi,

    I just downloaded the WP-Geo plugin an installed it. Works great so far!

    Now, if i select a location and save the new article, the map is only shown, when i show the article as a single page…
    Is this intendet by you or did i something wrong?

    Thanks in advance,
    greetings
    Alig

Leave a Reply