Dynamic Map Configuration

You need to set up the following before using our module:

Your permalinks structure ( Settings -> Permalinks -> Permalink structure) cannot be plain or numeric. This is because our plugin uses the WordPress API to call your post type's content which will be shown on your map.

A registered post type

It is mandatory to use a specific post type so that our Dynamic map module can retrieve the data from it.

You may register this post type by using custom code, or through an external plugin such as CPT UI, which is a popular solution for creating custom post types and custom taxonomies. Please take into consideration that this post type should be available through the WordPress REST API so make sure that your registered plugin has the show_in_rest parameter set to true.

If you are using CPT UI you may find this option by navigating towards CPT UI -> Edit post types -> Settings -> Show in REST API. By default, it should be set to true. You can also use WordPress core post types such as posts post type.

Two advanced custom fields (ACF)

This module requires the ACF plugin to be installed and active as we retrieve the latitude and longitude coordinates through those two fields which should exist at your WordPress installation.

You can name those fields as you may want. However, it is mandatory that those specific fields exist and are attached to the post type you have chosen for your maps.

In order to create them, please navigate towards ACF-> Field Groups -> Add new -> Fields and here create these two fields:

  • Field type: Text

  • Field label: Any label you want (E.g: Latitude)

  • Field name: Any name you wish to (E.g: lat)

  • Default value: ”

  • Field type: Text

  • Field label: Any label you want (E.g: Longitude)

  • Field name: Any name you wish to (E.g: Lon)

  • Default value: ”

  • Put a name to your field group (E.g: Divi Rock Maps Fields)

  • Go below to the Settings section, choose the Group Settings tab, and enable Show in REST API.

  • Hit Save changes

** Note: Some users already have created their ACF fields prior to our plugin acquisition. Our plugin will enable the REST API for all ACF Group fields on its activation. If you don't want this to happen you can deactivate this setting and configure the Show in REST API setting manually as indicated above.

Now you are ready to use our Dynamic map module. Please see the usage section below.

Last updated