For the complete documentation index, see llms.txt. This page is also available as Markdown.

Shortcodes & Embedding

Display your maps anywhere in WordPress using the map block or shortcode.

Once you've built a map in the Mapmaker, there are a few ways to embed it in your WordPress site.

Gutenberg Block

If you're using the WordPress block editor, search for the Map Select block. Choose a map from the dropdown and it will be inserted and rendered automatically — no shortcode needed.

Shortcode

You can find the shortcode for any map on the Maps list page in your WordPress admin. It appears on the right side of each row, near the creation date. Copy and paste it into any post, page, widget, or template that accepts shortcodes.

The shortcode is [mapster_wp_map] with the following parameters:

id

The WordPress ID of the map to display. This is the only required parameter.

zoom

Overrides the starting zoom level set in the map's settings.

latitude / longitude

Override the starting center coordinates set in the map's settings.

single_feature_id

Displays a single feature (Location, Line, or Polygon) using the specified map as a base template, but without any of the map's other features. Use the WordPress ID of the feature.

feature_ids

Similar to single_feature_id, but accepts multiple feature IDs separated by commas. Only those features will be loaded onto the map.

Map Post Page

Every map also has its own WordPress post page. Visiting that URL will display the map directly — no shortcode needed. This can be useful for linking to a standalone map page.

Last updated