Show WordPress Posts on a Map

Show your WordPress posts on one map. Give each post a location, and MapPress Pro puts them all on a single map with a list beside it. Clicking a marker shows the post’s title, excerpt and featured image, or opens the post itself. It works with posts, pages and any custom post type, with no Google Maps API key required.

Each marker on this map comes from a separate post. Click one to see it.

How it works

  • One map, many posts. A MapPress “mashup” collects the maps from many posts and shows all their locations together.
  • Choose which posts. Show every post with a map, the posts on the current page (a category archive or blog page), or a query you choose: a post type, category, tag or custom field.
  • Post content in popups. Popups can show the post title and excerpt, with the featured image as a thumbnail.
  • Click through to the post. A marker click can open a popup, the post itself, the post in a new tab, or the post in a modal window.
  • Search and filter. Add address search and filters by category, tag, post type or custom field. See map search and map filters.
  • Clustering. Markers that are close together group into numbered clusters, so busy maps stay readable.

Give each post a location

Add a map to a post in the editor and search for its address. Or let MapPress create the maps for you from address or latitude/longitude custom fields, including Advanced Custom Fields: when you save a post, its map is created or updated automatically. Travel blogs, real estate listings, event venues, member directories and project portfolios all work the same way.

Add it to your site

  1. Add a map with a location to each post (or generate the maps from custom fields in MapPress › Settings).
  2. Add the MapPress Mashup block to a page and choose which posts it shows. To show the posts of a category archive or blog page, use the MapPress Mashup widget in a sidebar.
  3. In MapPress › Settings, choose Post title + excerpt for popup content and what a marker click does.

Or use the shortcode anywhere shortcodes work. This is the one used for the map above:

[mashup query="post_type=location"]

Use query="all" for every post with a map, or a WordPress query such as query="category_name=travel". See the mashup documentation for all the options.

FAQ

How do I show my WordPress posts on a map?

Add a map with a location to each post, then add a MapPress Mashup block or

shortcode to a page. The mashup shows every matching post’s location on one map.

Can I show a custom post type on a map?

Yes. Mashups work with posts, pages and any custom post type, for example locations, properties or events.

Can the map show only one category?

Yes. Limit a mashup to a category, tag, taxonomy term or custom field value, or let visitors choose with filters.

Can clicking a marker open the post?

Yes. A marker click can open a popup, the post, the post in a new tab, or the post in a modal window.

Can maps be created automatically from addresses in custom fields?

Yes. MapPress Pro can create each post’s map from address or latitude/longitude custom fields, including Advanced Custom Fields, whenever the post is saved.

Do I need a Google Maps API key?

No. MapPress uses free OpenStreetMap maps by default, with no key or billing. Google Maps and Mapbox are also supported.

How many posts can one map show?

There’s no limit on maps or markers.

Free vs Pro

FreePro
Unlimited maps and markers✓✓
A map in any post or page✓✓
Clustering, location list, directions✓✓
One map showing many posts✓
Post title, excerpt and featured image in popups✓
Maps from custom fields and ACF✓
Search and filters✓