Simple Static Google Maps WordPress Plugin

February 28th, 2010

Write a lot of bar or restaurant reviews or about anything that has an address?  This WordPress plugin will allow you to easily place a quick loading google map at the end of any post or page when desired.

Usage

The plugin looks for a value in a custom field called static_map_address

Custom Fields

If this field is left empty nothing will display.  If you enter a full address into it a static google map of the address will display at the bottom of the post or page with a link that, when clicked, displays a small form so the reader can get directions to the location.  Check out the example below on this post!


Simple Google Map

Get Directions →

Categories: Wordpress Plugins


10 Comments on “Simple Static Google Maps WordPress Plugin” Comments RSS Feed

  1. John says:

    Just want to say this is a great plugin. Thank you for sharing.

  2. Phil says:

    Hi Garrett,
    Im struggeling to get the plugin working with a UK address. Can you help me at all?

    Thanks,

  3. Flick says:

    Hello!

    This seems like a really great plugin that does the essentials of adding a Google Map to a website. However, for some reason, when I try and enter my address in, this error message pops up

    “Warning: Cannot modify header information – headers already sent by (output started at /LINKTO/plugins/simple-static-google-maps/simple-static-googlemaps.php:1) in /LINKTO/wp-includes/classes.php on line 1586″

    I am currently using WP 2.9.2 and the latest version of the plugin (Linux/PHP Version 5.2.12)

    Any help would be much appreciated. Thanks :)

  4. Came to this site by Google looking for answers on embedding maps on my page and just wanted to say thanks for your help!

  5. bry says:

    Experiencing similar issue with Flick. It returns this error whenever I activate a plugin, edit posts or make a post.

    —-
    Warning: Cannot modify header information – headers already sent by (output started at /home/midli1/public_html/junk5760/wp-content/plugins/simple-static-google-maps/simple-static-googlemaps.php:1) in /home/midli1/public_html/junk5760/wp-includes/pluggable.php on line 868
    —-

  6. Andreas says:

    Hi,

    I think a found the problem and a solution for the “headers already sent” problem:

    Seems that the file was create as an XML document with a UTF8 Header:

    # od -c simple-static-googlemaps.php | head
    0000000 357 273 277 < ? p h p \r \n / * \r \n P l

    PHP does not like this, cause the file does not start with "<?php"

    So solution is easy:

    Create a new file, copy everything to that file with copy and paste and rename it to simple-static-googlemaps.php

Leave a Reply