- This topic has 6 replies, 2 voices, and was last updated 2 years, 8 months ago by .
-
Topic
-
No matter what I do, I haven’t been able to get Geolocation to do anything for my meta box fields. Auto-complete fields never pop up anything on a field with ‘address’ as the ID. And seemingly related, if I add a map field type, the post entry page shows the field map stuck on Dublin, and clicking the ‘Find Address’ button does nothing.
I had Geolocation enabled via AIO. But since that didn’t seem to work, I deactivated that and manually installed the MB Geolocation plugin. I’ve applied my Google API key, and ensured the Maps JavaScript API is enabled in my Cloud Console. I also disabled all other plugins except for MB-related. I checked the wp-admin source, and map.js and mb-geo.js are both loaded.
It feels like I’m missing something basic, since none of the geo-related functionality is activating for me. Sorry for asking what seems elementary.
In Chrome, I get this console error:
Uncaught TypeError: Cannot read property 'Autocomplete' of undefined at String.<anonymous> (mb-geo.js?ver=1.0.0:88) at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2) at Object.initAutoComplete (mb-geo.js?ver=1.0.0:83) at Object.init (mb-geo.js?ver=1.0.0:41) at mb-geo.js?ver=1.0.0:195 at mb-geo.js?ver=1.0.0:202
My function to generate the meta box is below, [API key intentionally obscured]
- You must be logged in to reply to this topic.