FIX Handling Chantier Name instead of concatenated title

This commit is contained in:
Antoine M 2025-04-24 16:01:20 +02:00
parent 2f6d823564
commit 67c16a6f24

View File

@ -155,15 +155,13 @@ $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 = get_field('city', $chantier->ID)['city'] ?? null;
// write_log($city);
$pictures = get_field('pictures', $chantier->ID);
$chantier_name = get_field('chantier_name', $chantier->ID);
?>
<div class="chantier">
<h4 class="chantier__title"><?php echo $chantier->post_title ?></h4>
<h4 class="chantier__title"><?php echo $chantier_name ?></h4>
<div class="chantier__infos">
<?php if ($city): ?>
<p class="chantier__city"><?php echo $city ?></p>