Only show one map per post - multi beats single
This commit is contained in:
parent
3cafc87523
commit
054cd475aa
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue