Cannot search by location in Members directory
-
Hello,
I created two separate test sites that are very similar in set up (same plugins, same themes). Previously I asked about the issue where it only lets me type a few letters into the search box before it becomes deactivated. The solution to that was to get an API key from Google Console and add it to the settings in Buddypress. After I did that, it worked for the first website and you can search for users by their location.
However, when I tried the same process for my second website, it didn’t work. I created a new project (two actually), created a new API, restricted them the same way, added a valid billing method, and put the API in the Buddypress settings, however, for the second website, in the member directory page, you cannot search by location at all, you get the error “This page can’t load Google Maps correctly.” if you try.
I compared both sites and I am stumped why the same process should work for one site and not another almost exactly the same site (a few different plugins but this is not a plugin conflict, because I once had the same plugins currently on site 2 on site 1).
I then discovered that you can put a search box for the location of members using a short code from the BP Search settings. When I used a short code to place the location search box in a page of its own, the search box works perfectly fine for both of them, it’s just that the location search function does not work for the second page on the members directory page for some reason.
Since everything in the Google side is set up properly but it only works on one of my WordPress sites when posted as a short code, I think the matter is more related to the plugin side of things and I was wondering if you could help.
Thank you
Stepanie
- You must be logged in to reply to this topic.