FEATURE Using the new trnaslated_city variable
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-08-05 15:21:12 +02:00
parent 1c03e26ab4
commit c89a69d616

View File

@ -15,6 +15,8 @@ $email = get_field('email', $postID);
$website = get_field('website', $postID);
$adresse = get_field('adresse', $postID);
$translated_city = isset($adresse['city']) ? translate_city_name($adresse['city'], $current_lang) : '';
$vatNumber = get_field('vat_number', $postID);
$cover_image = get_field('artisan_cover', $postID);
?>
@ -43,7 +45,7 @@ $cover_image = get_field('artisan_cover', $postID);
<?php if ($adresse): ?>
<p class="card-artisans__adresse"><?php echo $adresse['post_code'] . " " . $adresse['city'] ?></p>
<p class="card-artisans__adresse"><?php echo $adresse['post_code'] . " " . $translated_city ?></p>
<?php endif; ?>