User Locations - Shortcodes


This document provides instructions on how to use the shortcode of the extension User Locations.

Ultimate Member uses WordPress shortcodes to allow users to perform specific actions and display forms and templates. You may use shortcodes in the posts(page) content and text widgets.


[um_user_locations_map] #

This shortcode shows the location of members on a map.


Key Type Default Description
string The first existing location field Meta Key of the related location field.
lat float 0 The latitude coordinate. From -90 to 90.
lng float 0 The longitude coordinate. From -180 to 180.
zoom integer 12 The value of the zoom parameter. From 0 to 12.
height integer 300 The vertical measurement of the map in px.
marker_type string avatar The marker or the pin used on the map:
avatar - the user profile photo
—Ālassic - classic red pin
role - icon from user role settings
Leave blank to use the avatar marker.

Example - Display a map.

[um_user_locations_map field="um-home-location" lat="51" lng="15" zoom="4" height="500" marker_type="classic"]