Hi!
If you go to Job Listings -> Settings, do you have a Google Maps API key listed there?
https://wpjobmanager.com/document/geolocation-with-googles-maps-api/
@richardmtl O I forgot write it – of course I have it. 🙂 The maps are loading and searching. But new added/edited locations do not have lang and lan… I tried already almost everything I guess.
Can you show me an example job listing with the problem, and tell me if it was added from the job submission form on the front end or not? The geolocation only happens for jobs submitted from the job submission form.
@richardmtl
Hi!
Thank you for your reply.
Here is the exapmle:
https://olexy.pl/wpjm/index.php/job/company-name-londyn-2-front-end-developer/
Most of time I add via job sumbission form (or just with option “duplicate”)
But I see that there is not working in anyway.
You can login here and try it:
https://olexy.pl/wpjm/
On this installation there is only the WP Job Manager. And Google API is setted in settings.
P. S. The fields also is not addef after edit job location through the job submission form.
-
This reply was modified 6 years, 6 months ago by
kibus90.
-
This reply was modified 6 years, 6 months ago by
James Huff. Reason: credentials removed
-
This reply was modified 6 years, 6 months ago by
Jan Dembowski. Reason: Expanded short links
Hi!
That example job posting only has a city entered for the address, which is why you’re getting those warnings in Google’s Structured Testing Tool. You need to include a full address; Google can’t guess the address for you! 😉
Can you show me a link to a job posting that has a full address yet has warnings in Google’s tool?
Also, please do not include login credentials for a site here, even if a test or staging site. I have notified the moderators to delete the credentials. It’s not safe to do so, anyone can gain access to the site and potentially upload nefarious code. Note that I did not log into the site.
Hi @richardmtl
Thank you for your advice 🙂
But it does not mean about Google Tools. It means even I want to aplly a custom code (FacetWP) for Searching location, then I am missing many job offers, because they have not this custom fields (location coordination).
But before I put e.g. “Amsterdam, Netherlands” then the fields were filled in. Now it is not happening… In anyway…
Even I try to put full address, there is nothing happening. I think that there is not a problem with content of this field… I think it is something with Google…
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Another side note: @kibus90 Please do not use short links either, those get expanded when found and I have expanded yours.
@jdembowski
I am using it just to avoid indexing my domain via Google. 🙂 I do not have any problem with expending it.
But before I put e.g. “Amsterdam, Netherlands” then the fields were filled in. Now it is not happening…
But, for that particular listing that you shared, the Warsaw field *was* filled in; I see it in source, meaning that it should be there in the custom field in the back-end as well.
Hi @richardmtl
Unfortunately there is not…
For this and for all which are listed.
https://olexy.pl/wpjm/index.php/job/company-name-amsterdam-netherlands-2-front-end-developer/
And also with full address… The custom fields are empty.
Screenshot:
https://prnt.sc/ph3icz
-
This reply was modified 6 years, 6 months ago by
kibus90.
Okey, I found out where is a problem!
The problem is with the Google API.
I created a function to get respond from Google API and I got this result:
Array ( [error_message] => API keys with referer restrictions cannot be used with this API. [results] => Array ( ) [status] => REQUEST_DENIED )
I created a new Google API and I restricted it just for IP server (before I restricted the API for websites e.g: mywebsite.com)
Now geocodding works for WP Job Manager.
Oh, I’m glad you found that! Glad you solved it!