User Locations Setup


This document provides instructions on how to configure the display of location fields in the user profile and map in the member directories using the extension User Location.


Installing & activating #

To add the User Location extension to your site please do the following:

  1. Download the plugin zip folder from here.
  2. Install the plugin by uploading it to your site by going to Plugins > Add new > Upload plugin.
  3. On the upload plugin page click on the “choose file” button and select the User Location zip folder from your computer.
  4. Once the file appears on the screen click the “Install now” button to install the plugin.
  5. Wait until “Plugin installed successfully” message appears.
  6. Click the “Activate plugin” link to complete the activation.

Google Maps API keys #

After you have activated the plugin you will be redirected to the installed plugins page where you should see the following notice

For the User Location extension to work on your site you need to generate Google Maps API key. If you already have the key you can skip the next section. If you do not have your Google Maps API key already then click the “Generate your API key” button where you will be taken to the official Google Maps API website.

Generating your Google Maps API key #

Google Maps JavaScript API is a part of Google Maps Platform in Google Cloud Platform so you need to be registered at Google Cloud Platform. If you are a new user, click the button “Get Started” and go through the registration process. For the User Location extension to work correctly, you need to use Maps and Places products in Google Maps Platform.

Please enable your APIs and get API key as shown in the screenshots below

If you already have a registered Maps JavaScript API, you can copy the key by clicking on the following links

Read the article “How to create a Google Maps API key” for details.

Settings page #

Once you have your API key go to the Ultimate Member > Setting > Extensions > User Location section

Once you have successfully entered the correct key the Google Map can be added to User Forms (Registration/Profile) or Member Directories. Please note the Google Maps will not show until you enter the key. If you enter the wrong key you will see an error appear on the forms or member directories where the Google Maps should be.

The settings below the key could customize Google Maps settings. Map height, Starting map zoom level, Starting address latitude/longitude will be applied for User Location fields on the user forms.

Adding User Location fields to the form #

You could create 1 or more custom fields with User Location type. You will see the standard dialog of the custom field’s creation process. Please note: the meta key you specify will be used as the base prefix. Real data will be stored in “{metakey}_lat”, “{metakey}_lng”, “{metakey}_url” meta rows.

There is a User Location field’s layout. You could use Google Autocomplete to find the necessary location or get the current location via the button on the right of the field.

Adding Map to the Member Directory #

You could add a map to the member directories and show the markers of one of the created custom fields with “User Location” type. Once you have successfully entered the correct key the Google Map you will be able to see member directory meta box with the settings below.

The directory User Location settings:

  • Show Map – This option is used to turn the map on.
  • Show this user location field at the map – This option is used to select user location markers that will be displayed on the map.
  • Map height – This option is used to customize a map height on a screen. The size is set in pixels.
  • Starting map zoom level – This option is used to select the default map zoom.
  • Starting address latitude – This option is used to select the default latitude of the map center.
  • Starting address longitude – This option is used to select the default longitude of the map center.
  • Enable user location search field – This option is used to enable additional search field.
  • Choose field(s) to display in marker’s infowindow – This option allows you to select what information will be shown  in the marker’s info window.

The map on the members page displays markers for found members.

Note: The search results are divided into pages. You can list pages using links under the results. The map displays markers for members who are in the current page only.


This is a map on a member directory for showing users locations.

This is a map on a member directory for showing users locations and filtering users by the visible map’s bounds.