Google Map Shortcode Version 1.1

The new version of Google Map Shortcode is ready, some bugs were fixed and new features included.

The first release was based on “address”, then to include a point on the maps new instance of google geocoder was need, but google limits the number of this kind of request, read more here.

In this version new custom field “google-map-sc-latlng” was included to save the (Latitude,Longitude) for each address entered:

Now, you can include points on your maps using one of this custom fields considering this:

  • If you use “google-map-sc-address”, the first time that you display a point, the “google-map-sc-latlng” value will be generated automatically.
  • In order to use “google-map-sc-latlng” you need to include the latitude and longitude separated by comma.
  • If you update “google-map-sc-address” you must delete the “google-map-sc-latlng” cause this point will be located based on the previews address.
  • You can use “google-map-sc-latlng” only.
  • If you are planning to display large number of point is better to use “google-map-sc-latlng” or generate them one by one to avoid large number of address requests at the same time. You can generate latitude and longitude using for instance:
  • You can attache more than one point per post/page but based on address or (latitude,longitude) see the example bellow.
  • If you are displaying all the points under specific category, just the first costum field of each post will be used.

The shortcode options can be found in the first release.


This example shows the points attached to the posts under the category 42 cat=”42″ and display the links to the points at the bottom of the map, external_links=”true”.

In this example the map displays some points on South Florida:

and the custom fields looks like this:

Using the post “id” id = “335”.

Using specific address option in the sortcode (not the custom field) address=”3501 S.W. 130th Ave., Davie 33330″,width=”250″, height=”250″ and zoom=”8″.


The Info Window is showed when you are displaying post on your maps for example the posts under a category or when you use the post ID, just in these cases make sense to display the the title, thumbnail and excerpt of your posts.

You can change the html and the css of the Info Windows to cutomize it.

The shortcode name is google-map-sc



Add your suggestions, support the plugin.

91 thoughts on “Google Map Shortcode Version 1.1”

  1. This is a great plugin, the best I’ve used for Google Map integration, not least because you can use it in your templates. One issue I’m having though, is there anyway if using longitute / latitude instead of “address” when using it in templates?

  2. Ok I managed to fix it so that it shows the latest blog post on the center point of the map

    open google-map-sc.js and replace line 28




    I am still trying to sort out the external links into categories

  3. Hey, great plugin… I thought of 2 things that would be really good… 1) if the map centers to the latest blog post 2) have it so the external links are categorized….

  4. Hello there,

    I tried to include a map in one of my pages using your plugin.
    I’ve added [google-map-sc address="some address"] in my page but nothing shows up.

    I’ve applied changes suggested by Zafrir (wpurl and wp_remote_fopen) but this haven’t fix the issue.

    By the way, I’m using WordPress 2.9.1.

    Any idea?

  5. Hi mates!

    Nice pluguin! Just a question, is there any limition of size for the map? I am trying to enlarge the map but, it is not working at all. I am using the parameters bellow: [google-map-sc option = width="600,height="300", zoom="3"] but there is no way to get that width. Pls help!
    Oh, and happy new year!

  6. The option “allow_url_fopen” is ticked in my php.ini. Changing “the plugin javascript includes is using bloginfo(’url’) it should change to ‘mpurl’” didn’t help at all. Instead only the canvas without the map is being displayed. Regarding “google-map-shortcode.php line 649”, this didn’t help either. My article contains “Map 1

    [google-map-sc zoom="15" address="Am Nordwerk 14, 85659 Forstern, Deutschland"]

    Map 2


    The first map is available, for the second one there is not even a canvas, although I defined the field “google-map-sc-address”.

Leave a Reply

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