Add debug code

This commit is contained in:
Markus Ankenbrand 2024-10-29 23:22:36 +01:00
parent 8cfcc32212
commit c57cb3fec7

View file

@ -76,9 +76,12 @@
<?php $location = get_field( 'ort' ); ?>
<?php $locations = get_field( 'orte' ); ?>
<?php
if ( $location && !$locations ) :
echo var_dump($location);
echo "<br>";
echo var_dump($locations);
if ( $location && !$locations ){
$locations = [$location];
endif;
}
?>
<?php if ( $locations && count($locations)>0 && !is_nan($locations[0]['lat'])) : ?>
<div class="post-meta">