Job Listing is displayed on the map if it is geolocated, so if it has latitude and longitude values. For that to happen, you need to create an unrestricted Google Maps API key and add it in Job Listings → Settings → Google Maps API


Getting an API key

You can get a Google Maps API by following our instructions here.

Make sure your API key has the APIs enabled (please refer to article in link above). In this case skip the part where you set ‘Accept requests from these HTTP referrers’, set it to ‘None’ instead


How to verify if Geocoding is working?

  1. First make sure you key is properly created. Open following link and add your API key at the end of URL: https://maps.google.com/maps/api/geocode/json?address=%22New%20York%22&key=ADD_YOUR_API_KEY_HERE
  2. Then create a new job listing with a location name, view the job listing in wp-admin. It should contain the location details in custom fields. For example:

When are API calls made?

Calls to the Google API are made when:

  • A job is submitted.
  • The location of a job is changed.
  • Jobs are imported (using WP All Import) that have location data.

Geolocation data for a particular location is cached for 1 week, so an API call is not necessarily made every time in the above instances.


Geolocation Info and Custom Fields settings

Please note that to view what is saved as geolocation data in WP Jb Manager from the backend of your site, you need to enable the Custom Fields option in the WordPress Admin for the job post type.

You can do it by doing the following:

  • Head to your job listing post
  • Click on the three vertical dots at the far right of the screen (the settings option)
  • Click on Preferences
  • Select the Panel tab
  • Under Additional, toggle on the Custom Fields option.

Here’s a screencast to guide you through it (the short video will be downloaded upon clicking on the link below):

Geolocation Info and Custom Fields settings


Is this optional?

The API key is required if you want your job listings to contain geolocation data. Without the key, the location entered in the Location field when submitting a job will be stored as a single text string in the _job_location custom field.