Last active
December 24, 2016 10:51
-
-
Save Dinamiko/a4a79469c85b1fd51b71817e1e359cb7 to your computer and use it in GitHub Desktop.
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 | |
if( get_field('post_name') ) { ?> | |
<p><?php echo get_field('post_name');?></p> | |
<?php } | |
$image = get_field('post_image'); | |
if( !empty($image) ): ?> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php endif; ?> | |
<?php | |
$location = get_field('post_map'); | |
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