FIX Bug on city adress display for chantier

This commit is contained in:
Nonimart 2025-06-12 11:19:43 +02:00
parent c7d3fdbb66
commit 625a235ea5

View File

@ -154,7 +154,9 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
<?php
$chantier_description = get_field('description', $chantier->ID);
$date = get_field('date', $chantier->ID);
$city = get_field('city', $chantier->ID)['city'] ?? null;
$localisation = get_field('localisation', $chantier->ID) ?? null;
$city = $localisation['city'] ?? null;
$pictures = get_field('pictures', $chantier->ID);
$chantier_name = get_field('chantier_name', $chantier->ID);
?>