WP Geo

Plugin version: 3.2.1
Requires WordPress version: 2.8
Tested up to WordPress version: 3.0.1
Download: Click here to download...

Description

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

For more information please visit the WP Geo website.

Donate

69 Responses to “WP Geo”

  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

  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

  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.)

  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!

  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 ?

  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

  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)?

  8. Ben Huson Says:

    Map sizing coming soon….

  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.

  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. 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…

  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…

  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

  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.

  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?

  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?

  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!

  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.

  19. Jakub Says:

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

  20. Ian Says:

    Excellent plug-in, option to adjust default zoom level would make it perfect!

  21. smogan Says:

    today i tried a lot of google maps plugins for wordpress. yours is the first that’ll meets my needs. but i agree to the request for the zoom-level preset.

    thank you

  22. Ben Huson Says:

    I have just released version 2.1 which now allows you to set a default zoom level on the settings page.

  23. christolles Says:

    hello! your plugin is wonderful (and i DESPERATELY await “map of recent locations”), but i had an issue.

    on my blog-in-the-making (http://watson.christolles.com), the zoom level and map indicator icons do not show up (black rectangles instead). any ideas?

    thanks
    chris

  24. Ben Huson Says:

    Hi Chris,

    I had a look at the stylesheet for the theme ‘Colourise’ that you are using. In lines 88-89 there is a style that sets all images to have dark background colours and borders:

    background: #1B1B1B;
    border: 1px solid #1B1B1B;

    Try removing these lines and see if that fixes it.
    I’m not sure how this will affect the look of your theme but it will clarify wether it is actually this that is causing the problem.

    - Ben

  25. MaEl Says:

    @ben

    We could alternatively resetting those img css. I myself simply add these code to the wp-geo.php.

    In function shortcode_wpgeo_map, just add


    #wp_geo_map_' . $id . ' img {background:none;border:none;}

    before the div. So it should look like these


    return '#wp_geo_map_' . $id . ' img {background:none;border:none;padding:0px;}' . $content . '';

    Now, I have my theme img css work and the zoom level and map indicator icons works

    [ed] For more details see here
    http://pixca.net/blog/code-programming/wp-geo-resetting-image-stylesheet/

  26. Ben Huson Says:

    Thanks MaEl, will include that into the next update.

  27. SirFiChi Says:

    Very nice PlugIn, but I have some feature-requests:
    1. Is it possible to add the new “More…” function to the map, so pictures from panoramio and wikipedia articles will be visible in the map..
    2. It would be fine if the standard location can be changed (actually it is london)
    3. The new function “Google Earth” will be a great feature for Windows users, because the plugin is available for IE6, IE7 and Firefox 2+ only on Windows-PCs… (http://www.google.com/earth/plugin/examples/mapsapi/)

    Thx a lot for this plugin…

  28. Kayaker Says:

    Looks promising!

    Checking it out…

    With the [wp_geo_map] shortcode, can I specify type of map (terrain, hybrid) and other features like zoom level? I will need different maps on a per post basis that can override the admin default.

    Hmm, and how about displaying an overlay/ position from a specific kmz? That way, one KMZ and it’s markers can be …hmm wait, the current posts’ marker is not in the file. It would be better to load the kmz, and display that part to be discussed in the post…

    Anyone else doing this kind of thing?

  29. Mic Says:

    “Show map of recent locations (with links to posts?)”

    Yes please!
    This will make WP Geo very useful for my purposes. I’m planning to use WP Geo with the event’s calendar plugin and there by showing where the event is.
    A very useful way to navigate workshops and events for an international venue.

  30. Chad’s Blog» Blog Archive » New map feature on the blog Says:

    [...] switched to the wp-geo plug-in. I like that it puts a map at the bottom of each post that has coordinates, but I miss the feature [...]

  31. Rui Zamith Says:

    Fantastic Plugin! Landed on this website by pure luck, and I’m very happy with this tool. Congratulations!

    However, I have 2 questions:
    - how to add a black borderline to the map?
    - how to delete the “zoom bar” (at least the long one) on the left side? When I reduce the map height to 200, for example, the zoom bar pops out of the map.

    Hope someone can answer these questions.

    Rui Zamith – rzamith@gmail.com

  32. Ben Huson Says:

    Hi Rui,

    Thanks for your comment. My next release of the plugin (literally just about to upload) will have a few small improvements, one of which is I have added a ‘wp_geo_map’ class to each map’s div tag so they can be styled with your theme’s stylesheet.

    I have also added the map control comment to my to do list.

    - Ben

  33. Ben Huson Says:

    Version 2.1.1 Available

    A minor update to fix a few issues people have been having.

    I’ve added a ‘wp_geo_map’ class to the divs containing the Google Maps so you can now create a class in your theme’s stylesheet to alter the appearance of your map such as adding a border, alignment, margin etc.

    This has also enabled me to add some default styles to solve issues created by some themes (such as the Colourise theme) whereby all images within the map would by themed to have background colours and borders. I now override theme styles for images within the map div tag to always have no border, padding or background colour.

    Please let me know if you experience any further issues and log them on my Google Project Issues page.

  34. Rui Zamith Says:

    Ben,

    Thanks for your answer.

    I am not that good working with CSS, do you think there’s any possibility of deleting (or reducing) the zoom bar on the left, just by editing the wp-geo.php file?

    Cheers,
    Rui

  35. Ben Huson Says:

    Rui,

    The control is part of the Google Maps API. I will be providing support to change this control in future version, however for now you could try editing the wp-geo.php file.

    Search for all instances of “GLargeMapControl” and replace with either “GSmallMapControl” or “GSmallZoomControl” for a smaller control – the second one does not include panning controls.

    Let me know how you get on….

    - Ben

  36. martialarts Says:

    Hi all great information here and good thread to comment on.

    Can I ask though – how did you get this picked up and into google news?

    Very impressive that this blog is syndicated through Google and is it something that is just up to Google or you actively created?

    Obviously this is a popular blog with great data so well done on your seo success..

  37. Allan Says:

    I can’t get the category page map to work. The option is checked in my wp geo options menu. Is it because I’m only showing the excerpt in the archive.php?

    Also, the version 2.1.1 still says 2.1 in the download. Maybe that is the problem itself…

  38. Iwan Says:

    “Show map of recent locations (with links to posts?).”

    thanks for the great plugin. i would really appreciate the feature you named above. especially if you could add a sidebar widget with a map that displays all post entries and when you click on a pin you jump directly to this post. when could we see a first version of this?

  39. Rutger Says:

    Wow, thank you very much for this plugin! It works great… Maybe in the future you can make an automated map of all the posts(markers) (with clickable url)! hint hint ;) Thanks for so far!

  40. Gary Taylor Says:

    Great plugin, simple to set up and use, too!

    Multiple maps on a page would be handy, as we play on three grounds, and I can display all three on one page (or use a page tabs plugin to make it look like three), but that’s a minor niggle.

    What I’d find really useful, is (a) the ability to plan a route from or to my marker point and (b) to override the default size setting. I could then insert a smaller map on a post (floated right, using css), showing visitors how to get to away games, but still having the 100% map for our home venues.

  41. Mike Says:

    Awesome plugin!

    Works right out of the box even on WPMU.

    I just noticed one strange thing… When loggin into WP(MU) backend – it contacts maps.google.com – maybe for checking API key, maybe for something else as well.
    This degrades the overall performance of WP(MU) backend, I mean loading speed, especially on WPMU systems.

    Can something be done to avoid loading data from maps.google.com when logging into backend?

    Mike

  42. Chad Says:

    This is an incredible plugin, and I adore it. Bravo!

    Just some feedback…

    1. Show all locations easily – Create a companion plugin/settings so you can embed a map on any page/post/category/etc, and specify which category to show. I would want to create a wordpress Page called “hotels”, and then embed the map for all posts that have been put in the “hotels” category.

    2. Set the zoom level of the embedded group map above. Currently when i insert the PHP to display it is on a very zoomed in level, but I would want to show a world/country view.

    3. Allow for custom markers

    4. Make markers clickable and link to the original post.

    If the above 4 could happen I would absolutely be in love, and a donation would be coming your way. Please let me know if I can help in testing.

  43. beachbum Says:

    great plugin, works great. i have a request tho of adding more weather info besides just the temp and humity.

    i really need wind direction/speed and high/low tides

    Clouds, Barometer,Sunrise,Sunset would also be nice

  44. 6 Geographical Wordpress Plugins | HowToHackYourLife.com Says:

    [...] WP Geo ist auch ein sehr interessantes Plugin, kann aber leider nur einen Punkt auf der Karte darstellen. [...]

  45. J Jackson Says:

    Thank you for this plugin. I own the site http://www.bestoflakeminnetonka.com , http://www.bestoftijuana.com and will be installing this plugin on both.

    J.R.

  46. The 20 Best Wordpress plugins on the net’ | Flex & AIR Says:

    [...] WP Geo [...]

  47. Stephen Says:

    Finally, a plugin that works great. Mahalo.

  48. cheyo Says:

    I love this plug in. I use it at http://www.masters3d.com.

  49. Khan Says:

    BUG REPORT

    when schedule a post with wp-geo parameters, after that post become live, map is disappearing.

  50. Milo Says:

    This is simple, yet top Wordpress Plugin I’ve ever worked with. http://www.myinsuranceplan.net/state/florida-auto-insurance/ just installed into my template and it work’s like a champ.

    There is nothing easier. My current setup is your ” ” located in my template.

    Thank you so much for the great plugin and free contribution

    Best Regards,
    Milo

  51. Jeannot Muller Says:

    Hi Ben,

    your mentioned SVN repository under plugins.trac.wordpress.org reports wrong XML-format, however it works fine on regular wordpress repository.

    http://plugins.svn.wordpress.org/wp-geo/trunk/

    Regards
    jmu

  52. Ben Huson Says:

    Thanks Jeannot, I’ve amend the links.

  53. Norman Says:

    >BUG REPORT

    >when schedule a post with wp-geo parameters, after that post >become live, map is disappearing.

    I see this problem too. I had this problem with my own plugin where custom fields get nuked right after a post is live.

    I suggest you add some code to function save_post($post_id) so that it doesn’t just blindly delete the custom field first.

    This is what I added to my plugin:

    
    $postvalue = $_POST[$metakey];
    if ( isset($postvalue) && !empty($postvalue) )
    {
    	delete_post_meta($postID, $metakey);
    	add_post_meta($postID, $metakey, $meta_value);
    }
    
    
    	
  54. Jordan Says:

    Hi, is a there a template tag available to set the location of the map outside the default post text, rather than just the shortcode tag?

    Cheers, great plugin

  55. Ben Huson Says:

    Hi Jordan,

    No template tags to do this at present but I will shortly be launching an updated version of the plugin – I’ll try address this then. You may be able to get it to show using the <?php WPGeo::categoryMap();?> in your templates but I haven’t tested this

    The updated plugin will also allow you to add a map widget to your sidebar which will display all locations from posts on the current page.

  56. Alex Says:

    When should we expect an update so we can place the map in other place, not only the post. I really want to place the map on the sidebar.

    Thanks,
    Alex

  57. Ben Huson Says:

    New release coming soon – a couple more things to test.

    Please download the development version if you would like to try it out (from SVN or Trac) but be warned, there may still be a few bugs…

  58. baron Says:

    hi. Thanks for plugin

    perfect.

    Regards

  59. Rich Says:

    Ben,

    REally hoping I can use WP Geo in the site I’m building, but having problems. When I publish all I get is a big gray square.

    I’m using Primepress template. When I switch to Classic WP the maps seem to show properly.

    So I’m guessing there is something in the Primepress template that doesn’t jive with WP Geo. Any ideas on how I could work around this?

    Thanks,
    Rich

  60. Ben Huson Says:

    Hi Rich, have you tried disabling all your other plugins to confirm it is not a conflict with another plugin?

  61. Rich Says:

    Hey Ben, disabled the other 3 plug-ins I had installed and it made no difference, still a gray box.

    But, have determined that the map shows up fine on IE browser. Firefox and Opera no show.

  62. Ben Huson Says:

    Rich, I narrowed it down to a style in the PrimePress Theme. The offending style is around line 104 of the stylesheet:

    .entry-content img {max-width:100%; height:auto;}

    It can be fixed editing the wp-geo.css (in the WP Geo plugin folder) and setting max-width to “none” for all images in wp_geo_map divs.

    
    div.wp_geo_map img {
    	background: transparent;
    	border: none;
    	padding: 0px;
    	max-width:none;
    }
    

    This fix will be included in the 3.0 release of WP Geo coming very soon.

  63. Rich Says:

    Thank you Ben, the fix works perfectly! Love the plug-in, having the ability to quickly and easily insert a map into a blog post is awesome!

  64. Joost Says:

    Ben, I am testing out your plugin before potentially using it on my main site (which is currently using another geo plugin). However, I don’t see the pins on my maps. Can you have a look?

    It looks very promising!

  65. Joost Says:

    I will take that back! A simple deactivation -> reactivation solved the problem!

  66. Ben Huson Says:

    Version 3.0 now available

    Please visit the new dedicated WP Geo site at:
    http://www.wpgeo.com/

  67. Mark Greninger Says:

    Hi Ben,

    I’ve been having a lot of fun playing around with both Wordpress and WPGeo. I think the two together will make a difference in the world of emergency response here in LA County – see http://gis.lacounty.gov/eGIS

    Your plug-in, along with GeoMashup, are both easy to use right out of the box.

    Quick questions/comments.

    1. When I enable WPGeo, it starts output GeoRSS (sweet!). However, this appears to disable the capability of many of the outside readers to read my blog (not so sweet).

    2. Is there a way to place the map inside the body of the post, not just at the bottom? GeoMashup allows this, but its a bit clunky.

    3. GeoMashup allows a kml file that has been added as an attachment to a post to be automatically displayed – this is pretty cool – would love to see it here too, especially polygons and lines.

    Great stuff!

  68. Ben Huson Says:

    Thanks Marks, I’ll have a look into the feeds issue.

    You can include the map in the body of th epost by setting the map position to ‘manual’ on the WP Geo settings pages and inserting a map into your post using the shortcode [wp_geo_map].

    Like the KML attachment solution in GeoMashup. Will add it to a list of possible enhancements.

  69. Ben Huson Says:

    I’m closing the comments on this page.
    Please post any future comments at:

    http://www.wpgeo.com/