Created
June 13, 2013 20:24
-
-
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().
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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