Adding Custom fields to your Marker
This section covers how to create and use your own custom fields for your markers.
The Following Plugin/s need to be installed and active
- WP Go Maps
- WP Go Maps Pro Add-on
To add a custom field to your markers please navigate as follows:
WPG Go Maps -> Marker Fields
Type in the Name of the Custom field you'd like to create into the Name field
Icon: font awesome icons can be selected from the icon drop down, or can be found by typing the font awesome icon name in the icon dropdown search area.
HTML Attributes: HTML name and Value attributes can be set here if required
Filter type: Select the Type of field to create, from the type options The Following Filter 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
Info Window Visibility: enable the visibility icon if you want this field to be visible on Info Windows
Marker Listing Visibility: enable the visibility icon if you want this field to be visible on Marker Listings
ο»Ώ
To add additional Custom Fields, select the Add Button, and complete the name and field configuration accordingly.
When your marker/s are configured as required, please select the Save Button
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
Once you are satisfied with the order, please press the Save Button
On the Map editor of your selected map, you are able to navigate to the Markers section 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)
Scroll to the Edit existing Markers section near the bottom of the page, to identify the marker you would like to update. Select the edit this marker icon under the action header in the marker table. The marker will now enter edit mode.
Scroll down to the custom marker fields in the editor to edit the field values
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 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 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"
For more information regarding file imports please consult the following resource Importing Filesο»Ώο»Ώ
Map markers can be filtered by custom field values, please see the following guide for more information on custom field filtering Marker Filteringο»Ώο»Ώ