Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

ACF Maps field is broken #6

Open
phendrick opened this issue Aug 19, 2016 · 0 comments
Open

ACF Maps field is broken #6

phendrick opened this issue Aug 19, 2016 · 0 comments

Comments

@phendrick
Copy link

If a a map field has been added to a fieldset, when editing content the map JS breaks as google now requires an API key.

We can enqueue the googlemaps js with the key appended to the query string:

add_action( 'wp_enqueue_scripts', function(){ wp_register_script('googlemaps', 'https://maps.googleapis.com/maps/api/js?key=XXX',null,null,true); wp_enqueue_script('googlemaps'); } );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant