Support

Account

Forum Replies Created

  • I’m not sure how, but it has solved itself, maybe it was a bug in ACF or a bug from google that have been solved by the API, but no longer emits any kind of failure, so I give this issue solved

    Thank you all!

  • para mi ninguna de estas formas funcionan correctamente. Yo cargo todos los scripts desde functions.php

      wp_register_script('google_js',
                'https://maps.googleapis.com/maps/api/js?key=API_KEY', true, '3');
                wp_enqueue_script('google_js');
                
                wp_register_script('custom-maps', THEME_DIR . '/js/google-maps.js', array('jquery'), true, '1');
                wp_enqueue_script('custom-maps');

    and I have implemented the callback function as well.

    function my_acf_google_map_api( $api ){
        $api['key'] = 'API_KEY';
        $api['callback'] = 'Function.prototype';
        return $api;
    }
    add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');

    But I still have the same error

  • @sgauder I have not received any news on this problem, in some places it is indicated to call the API url using a callback in the url (&callback=initMap) and then load the library with the code, but this does not work for me.

  • Edit: The bug only happens on google Chrome

Viewing 4 posts - 1 through 4 (of 4 total)