Both the block and the shortcode put the same map with list and filters on a page, so you can pick whichever your editor works with. Each map has its own ID, and one site can hold as many maps as you need.
With the block
- Open the page in the block editor and add the block Mapfolk map. It sits in the category Widgets.
- Under Map, choose one of your maps in Choose a map. The selection is also in the block settings in the sidebar.
- Publish or update the page. The editor only shows a placeholder: the map with list and filters appears on the published page.
If the block says “No map yet”, set one up first under Mapfolk, Setup.
With the shortcode
- Open Mapfolk, Maps. The column Shortcode shows the code of each map, such as
[mapfolk id="12"]. - Click Copy next to it.
- Paste the shortcode into the page: in the block editor into a Shortcode block, in the classic editor or a page builder into a text element.
The setup wizard shows the same shortcode with a Copy button once it has created a map. A shortcode with an ID that does not exist shows a note to logged-in editors and nothing to visitors.
More than one map
- Under Maps, click Add map. The setup wizard starts again and creates a second map with its own filter groups and settings. All maps with Mapfolk’s own entries show the same entries. To separate them, use a filter group or an existing post type as the source.
- Place it with the block or its own shortcode. Several maps can sit on one page; each keeps its own filters. To show many locations on a single map instead, read showing multiple locations on one map.
Adjusting how the map looks
Under Settings, tab Display, you choose under Cards and list and Info window what appears (logo, colour dot of the marker colour, short text, address, link, terms) and set the colours under Colours and shape. The free plugin shows map and list side by side. Mapfolk Pro adds two more layouts, Map on top, cards below and Map on top, list below, plus five map styles. To load the map only after a visitor agrees in the cookie banner, read Map only after consent.
Back to the documentation