Support

Account

Home Forums Backend Issues (wp-admin) Google Maps Backend field does not suggest addresses Reply To: Google Maps Backend field does not suggest addresses

  • Hi @James,

    thank you for the answer. Until now i registered my API like that:

    wp_register_script('google-maps', 'https://maps.googleapis.com/maps/api/js?key=MYAPIKEY');
    wp_register_script('google-jsapi', 'https://www.google.com/jsapi');
    
    wp_enqueue_script('google-maps');
    wp_enqueue_script('google-jsapi');

    Now i replaced that with your suggestion (iam using PRO):

    function my_acf_init() {
    	acf_update_setting('google_api_key', 'MYAPIKEY');
    }
    add_action('acf/init', 'my_acf_init');

    I didn’t test it on the online system yet, but on my localhost the frontend now only shows white. :/ Was there anything wrong about my old attempt, respectively what is the acf filter doing?