Created
January 9, 2017 07:07
-
-
Save antiden/07b9c449dc72e4c47de455dd0d9854a9 to your computer and use it in GitHub Desktop.
WP ACF Google Map
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
<?php $location = get_field('location'); ?> | |
<?php if( !empty($location) ): ?> | |
<div class="acf-map"> | |
<div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment