How to Display WordPress User Roles and Locations on Maps

15000+ live websites are using this google maps wordpress plugin.

Display WordPress User Roles and Locations on Maps

With this User Locations On Google Maps extension, you can beautifully display the current locations of WordPress users on Google Maps.
All the user information displayed in the info-window and listing is dynamic and can be managed with the help of placeholders from the back-end.

Please make sure you have installed the WP MAPS PRO plugin and the User Locations On Google Maps
extension on your website. If you haven’t installed them yet, please download and configure these plugins first.

Display User’s Current Location on Google Maps

Step 1 Navigate to Add or Edit Map and scroll down to the “Users Location on Google Maps (Addon Settings)” section.

Addon Settings

Step 2 Enable the “Enable Addon” checkbox in this section.

Enable Addon

  • Select Roles to Display: Choose the user roles you want to display.
  • Ask Location After Days: Enter the number of days after which to ask a logged-in user for their location again.

Step 3 Click the Save Settings button.

On the map page, a browser location permission popup will appear. Click Allow to display your current location on the map.

Note: The SSL layer must be enabled (HTTPS) on your site for the location access popup to appear.

Location Permission Popup

Display Selected User Role on Map

Step 1 Navigate to the “Select Roles to Display” option in the same settings section.

Select Roles Option

Step 2 Select the roles you want to display.

Select User Roles

Step 3 Click the Save Settings button. Now, all logged-in users with the selected roles will be displayed on the map.

User Locations on Map

Manage Infowindow Message for Users

Step 4 Navigate to the “Infowindow Message for Users” section.

Step 5 Enter your desired text in the “Infowindow for Message” textbox.

Infowindow Message

Step 6 Click the “Show Placeholders” button to see available placeholders you can use in your infowindow.

Show Placeholders

Step 7 Click Save Settings.

You can see a working demo here.

Related Tutorials:

Was this article helpful?
YesNo

Install Plugin Now!

WP MAPS PRO helps you create dynamic, customizable maps using Google Maps or Leaflet — no coding required. Includes free updates, premium support, and a 30-day money-back guarantee.