fixing city on chantier
This commit is contained in:
parent
2cd207b946
commit
32a824d51d
|
|
@ -8,9 +8,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
?>
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<nav class=" breadcrumbs_navigation" aria-label="<?php echo __("Vous êtes ici", "homegrade-theme__texte-fonctionnel") ?>">
|
||||
<?php
|
||||
$currentPage = get_post(get_queried_object_id());
|
||||
|
|
@ -162,14 +159,19 @@ $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 = get_field('city', $chantier->ID)['city'] ?? null;
|
||||
|
||||
// write_log($city);
|
||||
$pictures = get_field('pictures', $chantier->ID);
|
||||
?>
|
||||
<div class="chantier">
|
||||
|
||||
<h4 class="chantier__title"><?php echo $chantier->post_title ?></h4>
|
||||
<div class="chantier__infos">
|
||||
<?php if ($city): ?>
|
||||
<p class="chantier__city"><?php echo $city ?></p>
|
||||
<?php endif; ?>
|
||||
<time class="chantier__date"> <?php echo $date ?></time>
|
||||
</div>
|
||||
<p class="chantier__description"><?php echo $chantier_description ?></p>
|
||||
|
|
@ -233,10 +235,6 @@ $pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
|
|||
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
get_template_part('template-components/conseil-patrimoine-redirector', null, array());
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user