CM Map Locations (CMML) - Integration - CM Business/Expert Directory
Integration with CM Business/Expert Directory
CM Map Locations can be integrated with the CM Business Directory and CM Expert Directory plugins.
This way, you can add a map to the listing of business or experts.
The following video shows the integration using the Business Directory as an example.
How it Works
You can display the map by using a shortcode. It has two attributes:
- category - Specify one or more categories by their id or slug
- categoryfilter - Set "1" to allow users to filter categories and "0" to disable it (Default is "1")
Business Directory Shortcode
Expert Directory Shortcode
Latitude and Longitude are Required!
The map will only display items that have latitude and longitude in their address.
You can add them by choosing the precise point on the map. To do so, enable the option "Place the marker manually".
Alternatively, you can use services such as Get Lat Long from Address Convert Address to Coordinates to obtain coordinates.