Difference between revisions of "WordPress-GeoMashup"
(removed duplicate global map section) |
(→Category descriptions) |
||
Line 64: | Line 64: | ||
Notice that it says "categories must have descriptions for this to work." Make sure that all of your categories have descriptions. | Notice that it says "categories must have descriptions for this to work." Make sure that all of your categories have descriptions. | ||
− | == | + | ==Add category descriptions== |
Here is how to add descriptions to your categories. | Here is how to add descriptions to your categories. | ||
Revision as of 16:06, 12 January 2013
Contents
Introduction
This tutorial describes how to create maps using the WordPress Geo Mashup plugin. It is assumed that you are familiar with the basics of WordPress, and have already installed and activated the Geo Mashup plugin.
Creating a post
- Go to the WordPress dashboard.
- Go to Posts > Add New
- Enter a title and body text
Add a location
While you are on the post edit page
- Scroll the page to the Location section
- Look for a world map
- Drag the map (left click and hold while moving the mouse) to center it on your location
- Zoom the map (use the + an - buttons on the left side of the map) to get close to your location
- Click the map to add a green marker
Saving locations
To save a location, we need to name it. Look below the map, you should see:
- Address
- Saved Name
- Geo Date
- Click the Saved Name field and give your location a name
- Modify the date as needed.
Reusing saved locations
Add a Map in the Post body
To add a map in the post body, you simply need to add the following shortcode anywhere in the text where you would like your map to render.
[geo_mashup_map]
Note: be sure that you have added a location to the post, otherwise a global map of all posts will appear.
Changing the location of a post
To change the location for a post:
- Click to Edit the post
- On the edit page, scroll down to Location
- Click the map to select a new location
- Update the post (under the Publish section)
Global maps
It is often desirable to display a global map of all locations. Global maps can appear in posts (when the post has no location, but contains the [geo_mashup_map] shortcode) and pages. Pages offer a bit more flexibility for global maps.
- Go to the WordPress Dashboard
- Click Pages > Add New
- Add a title
- In the page body, add the Geo Mashup shordcode
[geo_mashup_map]
If you save and view the post, you will see all of your geolocations on a map.
Additionally, we can tell Geo Mashup that this is our Global Map page, so that it can perform special functions, such as creating category maps, using this page.
- Go to the WordPress Dashboard
- Go to Settings > Geo Mashup'
- Look for the Global Mashup Page and set its value to your global map page
- Click the Update Options button at the bottom of the page
Category maps
You can display a map of all georeferenced content from a category. To do this, first set up a global map page. Once you have a global map page
- Go to the WordPress Dashboard
- Go to Settings > Geo Mashup
- Enable the Add Category Links option (click the checkbox)
Notice that it says "categories must have descriptions for this to work." Make sure that all of your categories have descriptions.
Add category descriptions
Here is how to add descriptions to your categories.
- Go to the WordPress Dashboard
- Go to Posts > Categories
- Hover your mouse over a category and click Edit
- Add a description, anything really
- Repeat this for all categories that you want use on the map