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” 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!