Support

Account

Home Forums ACF PRO Google Map and acf_form() conflict

Helping

Google Map and acf_form() conflict

  • I have the following enqueued in functions.php:

    wp_enqueue_script( 'google-map', 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false', array(), '3', true );
    wp_enqueue_script( 'google-map-init', get_template_directory_uri() . '/library/js/google-maps.js', array('google-map', 'jquery'), '0.1', false );

    acf_form() is loaded on the frontend. The problem is that, while the map displays properly on the actual page, it comes out blank in acf_form(). I’m assuming it’s conflicting from a possible duplicate of the Google Maps api?

    Does anyone have any idea as to how I can troubleshoot it?

    Thanks!!

  • Update: This stackexchange question is my problem in a nutshell:

    http://stackoverflow.com/questions/32761414/hide-google-map-code-when-running-acf-form-google-map-field

    No answers yet though.

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

The topic ‘Google Map and acf_form() conflict’ is closed to new replies.