website logo
Go back to WP Go Maps
⌘K
Atlas Novus (v9)
πŸ‘Initial Setup
πŸ‘First-time users
πŸ‘Map Features
πŸ‘Integrations
πŸ‘Importing and Exporting Data
πŸ‘Troubleshooting
πŸ‘Frequently asked questions
Legacy (v9)
πŸ‘Initial Setup
πŸ‘First-time users
πŸ‘Map Features
πŸ‘Integrations
πŸ‘Importing and Exporting Data
πŸ‘Troubleshooting
πŸ‘Frequently asked questions
Integrations
Developers
Hooks
Docs powered byΒ archbeeΒ 
8min

Separating the VGM form from the Map

Overview

This guide covers how to separate the form your visitors will use to generate a marker, from the map where the marker will be placed

Prerequisites

The Following Plugins need to be installed and active

  • WP Go Maps
  • WP Go Maps Pro Add-on
  • Visitor Generated Markers

Step 1: Add the map Short code

Paste the following shortcode on the page where you would like the Visitor Generated Markers (VGM) form to appear:

Text
|
ο»Ώ

Step 2: Link form to map that the marker will be created on

Add your map ID (on which the marker must be placed) to the β€˜wpgmza_vgm_form link_to_map’ attribute (1 in the example below).

Link form to map
Link form to map
ο»Ώ

Step 3: Configure redirection after form submission

Insert the url of page where the visitor will be redirected after adding the marker to the β€˜redirect_to’ attribute (https://www.wpgmaps.com/demo/visitor-generated-markers/Β in the example below).

Insert redirect link
Insert redirect link
ο»Ώ

Update the Page

A VGM form will now display on that page, without the associated map

VGM Form on page
VGM Form on page
ο»Ώ

Step 4 (optional) Remove the VGM form from the map page

If the β€˜redirect_to’  attribute will redirected to the map where the marker was added, remove the vgm form on that page by adding the following attribute to the map shortcode disable_vgm_form="1" e.g.

Text
|
ο»Ώ

Update your page.

Your page should now display the Map and markers only.

ο»Ώ

Updated 15 Feb 2023
Did this page help you?
Yes
No
UP NEXT
How to Create a Marker Cluster (Group)
Docs powered byΒ archbeeΒ 
TABLE OF CONTENTS
Overview
Prerequisites
Step 1: Add the map Short code
Step 2: Link form to map that the marker will be created on
Step 3: Configure redirection after form submission
Step 4 (optional) Remove the VGM form from the map page