Compare commits

..

3 Commits

Author SHA1 Message Date
5106c63358 removing write log
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-21 10:21:30 +01:00
a463fc5fd1 hiding title on post type edition 2024-11-21 10:21:20 +01:00
32a824d51d fixing city on chantier 2024-11-21 10:21:00 +01:00
3 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,10 @@
body.post-type-chantiers,
body.post-type-artisans {
#titlediv {
@apply hidden;
}
}
.edit-post-visual-editor__post-title-wrapper { .edit-post-visual-editor__post-title-wrapper {
h1 { h1 {
font-weight: revert; font-weight: revert;

View File

@ -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());
?> ?>

View File

@ -16,6 +16,7 @@ $email = get_field('email', $postID);
$website = get_field('website', $postID); $website = get_field('website', $postID);
$adresse = get_field('adresse', $postID); $adresse = get_field('adresse', $postID);
// write_log($adresse);
?> ?>