Add debug code
This commit is contained in:
parent
8cfcc32212
commit
c57cb3fec7
1 changed files with 5 additions and 2 deletions
|
|
@ -76,9 +76,12 @@
|
||||||
<?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 ) :
|
echo var_dump($location);
|
||||||
|
echo "<br>";
|
||||||
|
echo var_dump($locations);
|
||||||
|
if ( $location && !$locations ){
|
||||||
$locations = [$location];
|
$locations = [$location];
|
||||||
endif;
|
}
|
||||||
?>
|
?>
|
||||||
<?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">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue