Home Forums Backend Issues (wp-admin) Google Maps field needs setting to add API key Reply To: Google Maps field needs setting to add API key

  • @gab1982 the temporary fix is only intended for the WordPress backend because I suppose everyone has his own way of implementing the Google Map in the frontend.

    If you used the embed code mentioned on the official ACF Google Maps page (, you just have to change the script-tag:

    <script src=""></script>


    <script src=""></script>

    XXX being your own Google API key

    A better option to include the JS-file in your frontend is by registering & enqueueing the script, you can do this by placing the following code inside your functions.php file, or have a look at a specific tutorial like (just the first that came up in Google search, I have nothing to do with wpmudev)

     * enqueue scripts and styles 
    function nr_load_scripts() {
    	wp_register_script('googlemaps', '',null,null,true);  
    add_action( 'wp_enqueue_scripts', 'nr_load_scripts' );

    – again, replace XXX with your own Google API key
    – change the true to false if you want to load the script in de header of the page instead of at the bottom.