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