Re-add var_dumps
This commit is contained in:
parent
b2e18e40ac
commit
9bd265ab5b
1 changed files with 6 additions and 2 deletions
|
|
@ -76,11 +76,15 @@
|
||||||
<?php $location = get_field( 'ort' ); ?>
|
<?php $location = get_field( 'ort' ); ?>
|
||||||
<?php $locations = get_field( 'orte' ); ?>
|
<?php $locations = get_field( 'orte' ); ?>
|
||||||
<?php
|
<?php
|
||||||
if ( $location && (!$locations || count($locations)==0) || is_nan($locations[0]['lat']) ) {
|
echo var_dump($location);
|
||||||
|
echo "<br>";
|
||||||
|
echo var_dump($locations);
|
||||||
|
echo "<br>";
|
||||||
|
if ( $location && (!$locations || count($locations)==0 || is_nan($locations[0]['lat'])) ) {
|
||||||
$locations = [$location];
|
$locations = [$location];
|
||||||
}
|
}
|
||||||
|
echo var_dump($locations);
|
||||||
?>
|
?>
|
||||||
<?php $locations = get_field( 'orte' ); ?>
|
|
||||||
<?php if ( $locations && count($locations)>0 && !is_nan($locations[0]['lat'])) : ?>
|
<?php if ( $locations && count($locations)>0 && !is_nan($locations[0]['lat'])) : ?>
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>-multiple'></div>
|
<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