WordPress.org

Ready to get started?Download WordPress

Forums

Embedding Google Maps in Posts & Pages, WordPress 2.7 (4 posts)

  1. geophurry
    Member
    Posted 5 years ago #

    Hi all.

    I'm trying to embed a Google map in a page on my WordPress 2.7 installation. The reading I did indicated that WordPress should now do the necessary iFrame - to - shortcode conversion automatically on save, and this seems to be backed up by the fact that none of the simple Googlemaps plugins seem to work in 2.7.

    When I try pasting the code in as instructed, in either the Visual or HTML editors however, the entirety of the code ends up in the post, with no map.

    Hoping someone had a suggestion, I just need to insert one map.

    Thanks

    Jeff

  2. ieio
    Member
    Posted 5 years ago #

    hi, i found a solution that works, i share with all

    - install http://www.satollo.com/english/wordpress/include-it/ plugin and activate
    - create a file map.htm and edit with right latitude/longitude as shown:

    <iframe style="width:500px;height:400px;border:0;margin:0"
    
    src="http://maps.google.it/?ie=UTF8&t=k&om=1&s=AARTsJqzARj-Z8VnW5pkPMLMmZbqrJcYpw&ll=<strong>XX.XXX</strong>,<strong>YY.YYY</strong>&spn=<strong>Z.ZZ</strong>,<strong>W.WW</strong>&z=17&output=embed"></iframe>
    <a href="http://maps.google.it/?ie=UTF8&t=k&om=1&ll=<strong>XX.XXX</strong>,<strong>YY.YYY</strong>&spn=<strong>Z.ZZ</strong>,<strong>W.WW</strong>&z=17&source=embed" target="_blank" style="color:#0000FF;text-align:left;font-size:small">Visualizzazione ingrandita della mappa</a>

    then place it on your webserver (assume the root in this example)

    - in your post use this code
    [include file=map.htm iframe=true width=100% width=520 height=440 scrolling=no]

    that's all, you'll have something like this
    http://leolovela.netsons.org/info/

    Ciao from Italy ;-)

  3. ieio
    Member
    Posted 5 years ago #

    sorry, double post
    edit values between strong tag XX.XXX

    now i'm gonna have a try to this too

    http://downloads.wordpress.org/plugin/google-maps-for-wordpress.1.0.2.zip

  4. ieio
    Member
    Posted 5 years ago #

    update: using "include it" could be a solution in some case (disabling posting for users should be safe) but for security reason code injection in your web page isn't the best choice in my opinion.. so i'll use this plug-in, easy and complete

    http://www.matusz.ch/blog/projekte/xml-google-maps-wordpress-plugin/

Topic Closed

This topic has been closed to new replies.

About this Topic