Only show one map per post - multi beats single

This commit is contained in:
Markus Ankenbrand 2016-11-05 20:48:45 +01:00
parent 3cafc87523
commit 054cd475aa

View file

@ -74,7 +74,8 @@
</div>
<?php endif; ?>
<?php $location = get_field( 'ort' ); ?>
<?php if ( $location ) : ?>
<?php $locations = get_field( 'orte' ); ?>
<?php if ( $location && !$locations ) : ?>
<div class="post-meta">
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-single'></div>
<script type='text/javascript'>
@ -93,7 +94,6 @@
</script>
</div>
<?php endif; ?>
<?php $locations = get_field( 'orte' ); ?>
<?php if ( $locations ) : ?>
<div class="post-meta">
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-multiple'></div>