This plugin allows you to add a google map into your post/page using shortcodes. The following examples shows all available parameters you can use in your shortcode. Note that these examples have spaces between the opening and closing square brackets that must be removed during actual implementation.

Default world map

[ map ]

Multiple maps on the same page

In order to add more than one map to the same page, you need to add an “id” parameter for the new map. Since the default id for the first map is “map”, make sure you name it something else (ex: “map1”, “map2”). All id’s on the same page must be unique.

Latitude/Longitude

Address

If you provide an address, it will override any lat/lon parameters.

[ map id="map7" z="5" address="Tokyo, Japan" ]

Marker

[ map id="map8" z="5" address="Tokyo, Japan" marker="yes"]

Marker Image

You can add your own custom image to override the default google map icon. Make sure to keep your image small. Also, I would recommend you use a .gif or .png format with transparency. If you use your own image, make sure to also add the marker=”yes” parameter.

Info Window

If you have set marker=yes then you can also choose to provide an info window bubble. Simple HTML tags are also supported.

NOTE: Info window stying is very finicky in terms of the syntax. Try using < span > tags instead of < div > tags, and try to avoid double and single quotes.

[ map id="map10" z="15" address="New York" marker="yes" infowindow="Hello WorldNew York is the most populous city in the United States, and the center of the New York metropolitan area, which is one of the most populous metropolitan areas in the world."]

KML

Adding a KML URL will override any address or lat/lon parameters. It will also auto-center and zoom to the extent of the KML, therefore, overriding any zoom level settings.

WordPress v3.0 allows you to host multiple sites in a single install (previously MU). I followed the instructions on how to set this up following the WordPress documentation:

http://codex.wordpress.org/Create_A_Network

However, for some reason, these instructions did not work on a sub-directory install. I got the following message after hitting the “network” link in the Tools dashboard:

Because your install is not new, the sites in your WordPress network must use sub-domains

I had to follow these instructions to finally get it to work:

In WordPress 3.0, we have the ability to create a network of sites. But if your install is over 1 month old, the sites in your WordPress network must use sub-domains because of permalink problems with “/blog/” from the main site. This is how you can force the sites in your WordPress network to use sub-directories during the Network installation process.

You can remove the lines above once you done enabling the Network feature.

Creating this into a plugin is not an option, since all plugins are required to be deactivated before enabling the Network feature. Please read on how to Create A Network in the WordPress Codex and ticket #12931 for more information on why it is block by default.

This is a super simple plugin that allows you to upload doc, docx, ppt, pptx, xls, xlsx files through the media library uploader. I couldn’t find a plugin that could do this, so I decided to build one. Hope it helps others too.

Most WordPress themes come with the “Widgets” function in the dashboard (Appearance –> Widgets), that allows you to control the sidebars for all your site pages. However, for the most part, these are global settings, in other words, for every page in your site, it will apply the widgets accordingly.

So how do you set different widgets to show up on different pages of the site? Here is one work flow that worked for me:

Create different templates for each page layout you want. For example, you might have a 2 column layout page and a 3 column layout page. Each layout would have different content you want to appear in their sidebars. You would then create two templates: 2-column-layout and 3-column -layout.

When you create the template file, add the following code where you would like to see be controlled by widgets. For example, if you want a widget controlled right side bar for your two column template, then add the following code:

About me

I came to Los Angeles and UCLA in 1995 after living across the globe, in 5 different countries. At UCLA I serve as the Campus GIS Coordinator and hold lecturer positions in the Digital Humanities, Urban Planning and Public Policy. With 14 years of GIS project management experience, I have supervised projects in urban planning, emergency preparedness, disaster relief, volunteerism, archaeology, and the digital humanities. Current research and projects involve the geo-spatial web, visualization of temporal and spatial data, and creating systems that leverage current social media and web services in conjunction with traditional information systems.