Shortcode: Display the keyword field outside the map


Since version 1.5, the plugin included a shortcode, cspm_keyword_search, which allows you to display the keyword search field outside of your map. However, it only works when used on the same page as the map. If you plan to use this shortcode, ensure that the map is displayed on the same page.

The cspm_keyword_search shortcode supports the following attributes:


map_id

The ID of the map that the keyword search field should be linked to.

Example: [cspm_keyword_search map_id="15"]


list_ext

Specifies whether the keyword search field should consider the use of the “List & Filter” extension. Possible values are yes and no.

Example: [cspm_keyword_search list_ext="yes"]


placeholder

The text to display as a label inside the keyword search field. Defaults to “Type keywords to find locations…”.

Example: [cspm_keyword_search placeholder="Enter a keyword"]