Skip to content

Instantly share code, notes, and snippets.

@styledev
Created June 13, 2013 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save styledev/5777023 to your computer and use it in GitHub Desktop.
Save styledev/5777023 to your computer and use it in GitHub Desktop.
How to get the ACF Location Field to show the map when using acf_form().
add_action('wp_head', 'form_acf', 10 );
public function form_acf() {
if ( is_page('Add an Opportunity') ) {
echo '<script src="https://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"></script>';
acf_form_head();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment