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

Posted by Daniel - 2,253 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)

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:





Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.

Coffee Break

Comments - Thanks Guys :)

  • Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
  • Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
  • Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
  • Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
  • tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.