8min

Displaying your Map on your WordPress site

Overview

This guide covers how to display your map on the front end of your WordPress website using either Gutenberg Blocks or the Shortcode

Setup

Prerequisites

The Following Plugin/s need to be installed and active

  • WP Go Maps

Displaying your map using Gutenberg blocks

Navigate to the page you would like to display your map on, and open the page editor.

Access the page editor
Access the page editor

Toggle the block inserter, with the + icon near the top left of the page.

Toggle the block inserter
Toggle the block inserter

Scroll to the Text section and select the "WP Go Maps", a map block will be inserted onto your page.

Inserting a Map Block
Inserting a Map Block

Select the Map to be displayed in the Map dropdown on the Gutenberg block settings pane and "Update" your page. Your map will now be visible on this page on the front end.

Selecting the map
Selecting the map

We do not currently support preview on the back end.

Displaying Your Map on Your WordPress Site (without Gutenberg)

To display your map on your website, you must copy and paste theΒ Map ShortcodeΒ to aΒ PostΒ orΒ Page.Β The Map Shortcode can be found on the Maps page or under the General Settings of the Maps editor (WP Go Maps -> Maps (edit your chosen map) -> General Settings)

Shortcode on the Maps Page
Shortcode on the Maps Page
Shortcode on General Settings
Shortcode on General Settings

Copy and paste this Shortcode onto a Post or Page. It should look like this:

Document image

Once you’ve finished editing your post or page content, click theΒ PublishΒ button.

Your Map should display on the published post or page (front-end).

ο»Ώ

ο»Ώ

ο»Ώ

Updated 20 Jun 2022
Did this page help you?
Yes
No