Google Map Shortcode WordPress Plugin


  1. Description
  2. Usage
  3. Modules
  4. Examples
  5. Screenshots
  6. Changelog
  7. Download


This plugin is a friendly integration of Google Map into your blogs.

The plugin is based on WordPress shortcodes, so it can be used like a tag into your content and allows multiples parameters to customize the map and markers behavior. The editor button allows to add the shortcode attributes easily.

On the Google Map editor panel you can add points to the maps, change the map configuration and look how the map will looks like with a “Preview Map” button.
Once you add new point it is attached to the post and you can deploy it on any map in your blog using the “id” or “cat” attributes in the .

The plugin also allows to customize the “Info Window” editing the html and using some parameters like: Title, Description, Thumbnail, Link, etc.

If you want to focus a specific point in your maps the “focus” attribute should be used. You can use the point number or focus = “all” to rotate all the points. The focus feature can be based on “center the marker” or “open the marker” . For more details visit the Shortcode reference section.


The Google Map Shortcode editor panel allows to set and insert the shortcode into your code, but it can be added manually using:

Shortcode for the content of posts and pages

[google-map-sc option = "option value"]

PHP code for theme files

<?php echo do_shortcode ('[google-map-sc option = "option value"]') ?>

To see the list of the shortcode options visite the Google Map Shortcode Reference page.

For more details you can visite the how to use section.


The plugin allows to add points and maps easily including titles, images, descriptions and animations; but if you want to extend the functionality and interaction of your maps, some modules are available. They can include slideshows, custom scrolls and more. Visit the modules page for more details.





  • Map types added.
  • Marker animation option added.
  • Focus option added.
  • Maps marging and aligment added.
  • More Map languages included.
  • Performance improved.


  • Preview map added on the map editor panel.


  • Google Map Shortcode tab added to the media editor window.
  • Upload Image button added.
  • Cleaning string before saving points fixed.
  • Other bugs fixed.


  • Allows selecting single point icon, title and description.
  • Html filters added.
  • Just one custom field by post to include all the points.
  • Icon selection improved.


  • Geocoding API request changed.
  • Html width parameter included.


  • Custom marker added.
  • Google Map Javascript v3 integrated.
  • Editor button added.
  • Ready for translation.
  • Maps in different languages allowed.


  • Loops related bugs fixed.
  • More than 10 points allows per page fixed.
  • New custom field included in order to cache the Latitude and Longitude and avoid extra Google Geocoder requests.
  • More than one point per post fixed.


  • Initial release.


122 thoughts on “Google Map Shortcode WordPress Plugin”

  1. Hi there

    Fab plugin. I’m just having a small problem – when I include the shortcode in my custom posts, the map displays with a horrible background behind the map controls, and if you click on any of the markers. This happens regardless of whether I am including it directly, or whether I include it via do_shortcode. This doesn’t happen in normal posts (looks beautiful in normal posts) – any ideas?

  2. Hi Alain !

    I just love your plugin, just so easy to work with and to manage.
    But since I’ve uprgaded to wordpress 3.3.1 and your last plugin release, I can’t delete the markers I created before.
    The delete button just doesn’t work on them and even when I delete the points in my database, they keep coming back…
    Could you please help me on this ?
    I don’t want to go for a nother plugin, they just lack the simplicity of yours…
    Thanks for your great work !

      1. Hello !

        Sorry to comme back this late and thanks for your reply.
        No, I don’t.
        Seems my installation suffers from little bugs… I’m going to track them, fin out whether or not a plug-in might be the problem.
        I’ll comme back if I work it out. Still, don’t hesitate if you have a solution for me !
        Thanks again !!

  3. I have been using this plug-in for two years now. Today I noticed that I am getting a code listing of my map co-ordinates at the top of the page in which I am displaying the map see( It is very strange. Today I updated to WordPress 3.3.1 and updated my theme (atahualpa). I disabled all my plug-ins there was no difference. Would you have any idea what would be going on, or how I could fix it? also, when I try to get on the ReadMe Page for Google map shortcode, it consistantly logs me out of my site(?).

    1. sorry, i forgot to mention- when I try to alter the settings page, it logs me off my site as well. (I actually have to log-in TWICE to get on my site??).

    2. Go to the google-map-shortcode/include/functions.php search for this line of code “print_r($post_data_ltlg);” and delete it.

      1. Thank you so much for replying so quickly! It worked! However, still if i try to modify the Google Map short code, it still kicks me off my site and I have to log in twice to get back on. At this point, I don’t care, because the map is up and functioning and the ‘code display’ is gone, and that is all that matters.

  4. OK, maps are working, just some minor cosmetic issues. Here’s the home page aggregate map:
    1. If you click on any point, the info window comes up, but so do all these distracting lines on the map, and there is no x to close the window. Sometimes there’s a pointer from the info window to the point, but othertimes there are stray lines there. Zooming down will also bring up distracting lines.
    2. Is there any way to move the view of the map down, so that I could increase the zoom? Currently, increasing the zoom from 4 to 5 will cut off the northern points.


      1. Thanks Alain, it’s working!

        I have a suggestion for a future update. I didn’t like the map bouncing around so turned that off. But it would be nice if when you hover your mouse over the point, that the info window came up then.

  5. My blog reviews ski resorts, so I place one map on each post. How do I make one aggregate map that shows all the individual points on one big map? I’d like it to be like a Table of Contents page, where clicking on the point should take you to the correct post.

    Is there a limit to the number of points on this aggregate map, if it is a feature?


      1. Thank you so much Alain, it works! I’m slowly picking up the syntax of your code, but what’s even more confusing is finding the ID #s required. All you need is a post ID or category ID, but where do you find these? I found it by hovering my mouse over the category name, under Posts -> Categories. I’m sure there are plug-ins to make the IDs show, but I only have a few posts and one category right now. The map is working, so thank you, very useful plug-in!

  6. Has anyone had any luck popping up a map inside the Worpress native Thickbox from a “Map” link on a page? I don’t want to use the hidden DIV method because I don’t want the initial overhead on the page load ( I don’t want to load the map unless it’s requested.)

    Thanks in advance.

    1. Yes, there is a problem with this addres “420 Florida Street
      Vallejo, CA 94590-5416” and the line break. Try to put everything in a single line.

  7. Your plugin is great! I have been using it with 9 points on the map just fine. But today I added a 10th point and the map disappears! When I delete that 10th point the map reappears on my website. Am I limited to only 9 points for this map to be displayed?

  8. Hi Alain

    I have upgraded the theme on my website (from Weaver 2.2.6 to Weaver II Pro) and now all my maps have regularly-spaced vertical gaps in them, the zoom ladder on the left is hidden (although you can still zoom if you put your mouse in the right place!), and the info boxes have lots of problems (no X to close, no arrow pointing to the flag, no shadow, a blurry graphic has appeared at the bottom of the box).

    This is an example page (all map pages have the same issues)

    The issues are evident whether viewing the site in IE8, IE9, Firefox 8 and Opera.

    Do you have any ideas on what the cause and solution might be?

    Thanks in advance


    1. Hi Gillian,
      A lot of newer themes are using responsive layouts in an effort to accommodate mobile devices. A common CSS rule used for this is to set image sizes to 100% which effects this plug in adversely. Look in your CSS file for that and remove it.

      1. A better solution would be to add the following to your themes css file:

        .gmsc img {

        This will not effect the rest of your theme but fixes the issues with images inside the map.

Leave a Reply

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