WP Go Maps (v9)
...
Map Features
Markers

Adding Custom fields to your Marker

11min

Overview

This section covers how to create and use your own custom fields for your markers.

Prerequisites

The Following Plugin/s need to be installed and active

  • WP Go Maps
  • WP Go Maps Pro Add-on

Creating a custom Field.

To add a custom field to your markers please navigate as follows:

WPG Go Maps -> Marker Fields

Name the field

Type in the Name of the Custom field you'd like to create into the Name field

Select the field type

Select the Type of field to create, from the type options The Following Field Types can be created:

  • Text - This type of field accepts free text input
  • Dropdown - This type of field will display as a dropdown in when filtering is enabled
  • Checkboxes - This type of field will display as checkboxes when filtering is enabled
  • Time Range - This field accepts a time as input, and will allow filtering by Time Range when filtering is enabled
  • Date Range - This field accepts a date as input, and will allow filtering by Date Range when filtering is enabled

Field Meta

Select the field meta button to edit the custom field meta information

Field meta button
Field meta button
ο»Ώ

Here the follow items can be edited:

  • Icon: font awesome icons can be selected by typing the font awesome icon name
  • Visibility: Field visibility can be configured for display on Info Windows and Marker Listings. Check each desired option to display accordingly
  • HTML Attributes: HTML name and Value attributes can be set here if required

When the marker is configured as required, please select the Save Fields Button

Changing the Marker custom field order

The order in which fields are displayed in the Marker editor, Info Windows and Listings can be changed by selecting the field handle and dragging the field to the desired place in the field list. Markers displayed at the top of the list will be displayed first in the marker editor, Info window or Marker listing

Drag the field handle to reorder field list
Drag the field handle to reorder field list
ο»Ώ

Once you are satisfied with the order, please press the Save fields Button

Using your Custom Fields

Editing the custom field values in the marker editor

On the Map editor of your selected map, you are able to navigate to the Markers page to edit the custom fields of an existing marker (or create a new marker if required)

Navigate to:

WP Go MAPS -> Maps (edit your chosen map) -> Markers

The Marker editor can be accessed by selecting the ellipses in the Action column of the marker list and then pressing edit

The custom fields will be available to edit near the bottom of the editor

Custom Fields in the Marker Editor
Custom Fields in the Marker Editor
ο»Ώ

Edit values as required and remember to hit the Save Marker Button when complete

Example of a marker with Custom Fields displayed on the Front end:

Custom fields displayed in an Info Window
Custom fields displayed in an Info Window
ο»Ώ

Importing Custom field values

Custom field values can also be updated via File import.

Please see the following example in the case of a CSV upload:

If the Custom Field has already been created as described above, the field name can be used as the field header, and values can be added as with any other field

Custom Fields in aCSV upload
Custom Fields in aCSV upload
ο»Ώ

Custom fields can also be created on-the-fly during an import by adding a header in the following format Custom Field: Custom Field name. in the example below the custom field name is "Capitol"

New Custom field in CSV upload
New Custom field in CSV upload
ο»Ώ

For more information regarding file imports please consult the following resource Importing Filesο»Ώ

Filtering Custom Fields

Map markers can be filtered by custom field values, please see the following guide for more information on custom field filtering Marker Filteringο»Ώ