adding thematique loop exceptions for non ready thematiques

This commit is contained in:
Antoine M 2023-11-22 13:51:24 +01:00
parent 84224693fe
commit 813d29b79a
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,12 @@ $page_icon = get_field('page_icon', get_queried_object());
<p class="archive-page-header__description"><?php echo __("Simplifions votre recherche grâce aux questions fréquemment posées !", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></p>
<ul class="archive-page-header__terms-grid">
<?php foreach ($thematiquesTerms as $thematique) : ?>
<?php if ($thematique->slug === "renovation-circulaire") continue; ?>
<?php if (
$thematique->slug === "renovation-circulaire"
|| $thematique->slug === "circulaire-renovatie"
|| $thematique->slug === "au-quotidien"
|| $thematique->slug === "dagelijks"
) continue; ?>
<?php
// $thematique_icon = get_field('taxonomy_pictures', $thematique)['icon'];

View File

@ -3,7 +3,6 @@ get_header();
$current_page_id = get_queried_object_id();
$pageIcon = get_field('page_icon', get_queried_object_id()) ?? null;
$posts_per_page = 5;
// #### BROCHURES QUERY