Setup WPLocalPlus

Create Google API Keys

Go WordPress Dashboard -> WPLocalPlus -> Settings.

Listings to fetch from: Here you can select the API from which you want to fetch business listings. Like Google, City Grid and Both.‌

If you select Google, then you need to create Google Map API and Google Place API and use it into WPLocalPlus settings.

If you select City Grid, then you need to create and use the City Grid publisher key in WPLocalPlus settings.

Similarly, if you select 'Both', then you need to use all three API keys.

As WPLocalPlus Plugin fetches listings from Google and City Grid through API call first, make sure that all API keys are in place. Otherwise, your business list will not display results.

Show Map: To display your listing location on Google map.

Select Language: Here you can select language.

Steps to create Google Map API key

  • Click 'Enable APIS AND SERVICES' from the top. Search for Maps Static API, Maps JavaScript API, Geocoding API & Geolocation API and enable all of them.

  • Now, go to the "Credentials" tab and click on "Create Credentials-> API Key".

  • Click on "RESTRICT KEY". Under it go to API restrictions tab and choose Places API, Maps JavaScript API, Geocoding API & Geolocation API.

  • Then go to the Application restrictions tab and click on HTTP referrers (web sites). Add following domain referrers values: https://*.yourwebsite.com/*, https://yourwebsite.com/*

  • Save it.

  • Copy the key and paste it in WPLocalPlus -> Settings under Google Maps API.

Steps to create Google Place API key

  • Go to APIs & Services -> Dashboard

  • Click 'Enable APIS AND SERVICES' from the top. Search for Places API, Maps JavaScript API, Geocoding API & Geolocation API and enable all of them.

  • Now, go to the "Credentials" tab and click on "Create Credentials-> API Key"

  • Click on "RESTRICT KEY". Under it go to API restrictions tab and choose Maps Static API, Maps JavaScript API, Geocoding API & Geolocation API.

  • Then go to the Application restrictions tab and click on HTTP referrers (web sites). Add following domain referrers values: https://*.yourwebsite.com/*, https://yourwebsite.com/*

  • Save it.

  • Copy the key and paste it in WPLocalPlus -> Settings under Google Places API.

Steps to create Google Maps URL signing secret

  • From the Project drop-down menu, select the same project you used when you created the API key for Maps Static API i.e. Google Map API.

  • From the APIs list on the Dashboard page, click the name of the Maps Static API. The API details display, with the Overview tab open.

  • Click the URL signing secret tab.

Steps to create the City Grid Publisher key

If you want to use CityGrid API to fetch listing then you need to create City Grid Publisher key.

  • Click on Create an Account.

  • Enter Primary Contact Information and Application Details.

  • In Application Details, enter your site URL in the URL field.

  • After creating an account you will get an account activation email with your publisher code.

  • Go to Dashboard -> WPLocalPlus US copy publisher code from the email and enter in Publisher key Field.