Home › Forums › Backend Issues (wp-admin) › Google Map not displaying on WP backend › Reply To: Google Map not displaying on WP backend
Google Maps field worked for a while, but it is no longer appending my API key on the backend in ACF v5.8.7, in the latest version of wordpress.
I am getting the “util.js:232 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys” in the console.
I have made no change to my api key code, which is as follows (and is part of a custom plugin I wrote for my site):
/** Google Map API Key for place lookup */
function my_acf_google_map_api( $api ){
$api['key'] = $_ENV["GOOGLEKEY"];
return $api;
}
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
I am also enabled for billing and Geocoding, Geolocation, Maps Javascript API and Places API in the Google Developer Console.
Any ideas?
By the way: I really love this custom field, having tried maps in many others. Thanks for building this tool!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.