FIX Handling Chantier Name instead of concatenated title
This commit is contained in:
parent
2f6d823564
commit
67c16a6f24
|
|
@ -155,15 +155,13 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
||||||
<?php
|
<?php
|
||||||
$chantier_description = get_field('description', $chantier->ID);
|
$chantier_description = get_field('description', $chantier->ID);
|
||||||
$date = get_field('date', $chantier->ID);
|
$date = get_field('date', $chantier->ID);
|
||||||
// $city = get_field('city', $chantier->ID);
|
|
||||||
$city = get_field('city', $chantier->ID)['city'] ?? null;
|
$city = get_field('city', $chantier->ID)['city'] ?? null;
|
||||||
|
|
||||||
// write_log($city);
|
|
||||||
$pictures = get_field('pictures', $chantier->ID);
|
$pictures = get_field('pictures', $chantier->ID);
|
||||||
|
$chantier_name = get_field('chantier_name', $chantier->ID);
|
||||||
?>
|
?>
|
||||||
<div class="chantier">
|
<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">
|
<div class="chantier__infos">
|
||||||
<?php if ($city): ?>
|
<?php if ($city): ?>
|
||||||
<p class="chantier__city"><?php echo $city ?></p>
|
<p class="chantier__city"><?php echo $city ?></p>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user