Register & define a Google Maps API key to allow the location field to work correctly.

First register a API key for Google Maps then include the following snippet in your functions file.

<?php 
function my_acf_init() {
	
	acf_update_setting('google_api_key', '--key-here--');
}

add_action('acf/init', 'my_acf_init'); 
?>					

Keep up to date with all things ACF!

Subscribe to our newsletter or follow @awesomeacf on Twitter!