How to easily display a cute Google Map inside your WordPress Post

Posted by Daniel - 1,812 Views

Google MapGoogle Map in your WordPress post? Yup, I think it’s going to be cute especially if you are blogging on topics about about traveling. I had been searching for a plugin to get a simple and easy implementation of google map into the WordPress post and yes I found it. It’s called phoogle plugin created by Justin Johnson & Chris Peneguy. It’s a good plugin with a sophisticated admin panel BUT it has a downside: it needs the Exec-PHP to be installed. Exec-PHP is a plugin which allows you to run php scripts inside your post.

If you already have Exec-PHP or similar plugin installed for some reason, you can just use the original phoogle plugin which you can get it here.

But if you don’t have Exec-PHP installed and have no intention to install it, I have a good news: Now you can use my modified phoogle plugin so you can display the Google Map without the need of Exec-PHP.

HOW TO USE THE MODIFIED phoogle PLUGIN:

The usage is very simple. All you need to do is insert the trigger tag into your wordpress post. There are two trigger tags you can use, first is the trigger tag based on coordinate points, it looks like this:

[ gm point = "latitude:longitude:infostring" ]

The second one is the trigger tag based on address. the following tag is an example how to use address based query to display Google Map:

[ gm address = "addressstring:infostring" ]

Following is the map showing Venice, Italy rendered by the modified phoogle plugin, it requires no Exec-PHP like plugins.

One more thing: To be able to get the map displayed you will need a Google Map API Key, you can get it here for free.

To get the coordinate point of a city I have been using Google Earth. Please let me know if you find an easier way to get the coordinate point.

Get modifed phoogle plugin (8 KB)

__________________________

Related posts brought to you by Yet Another Related Posts Plugin.

share this article

Digg del.icio.us Netscape StumbleUpon Yahoo! MyWeb reddit Furl Magnolia Newsvine Technorati SlashDot Blinklist Simpy Google
This post as PDFPosted in: Programming - February 2008

One Response to “How to easily display a cute Google Map inside your WordPress Post”

  1. Lewis Says:

    Superbo Manifesto mate! Superb Article Keep it up



Leave a Reply


Options for your comment:





Get my Full Feed Here or you can subscribe to one of my category based feeds below:
Coffee Break

Latest Blog Entries

Categories

Neighbours and Friends

Comments - Thanks Guys :)

  • Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
  • Marlena Albu: Super Blog, Dude! I am constantly on the watch for new and interesting sites and postings about audio equipment… which is what...
  • tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.
  • Sean: This is a great piece of code and thanks for adding the updates. Sean’s last blog post: Not All Text Message Marketing Is Created...
  • rodhy: Thank for your code, it very usefull for me. best regard.