hiding some thematique from archive loop

This commit is contained in:
Antoine M 2023-11-30 13:09:12 +01:00
parent 40e3e3e90b
commit d94bb97e65

View File

@ -27,10 +27,17 @@ $page_icon = get_field('page_icon', get_queried_object());
<?php endif; ?>
<h1 class="archive-page-header__title"><?php echo __("Nos conseils par thématique", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></h1>
<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>
<p class="archive-page-header__description"><?php echo __("Simplifions votre recherche par thématiques !", "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"
|| $thematique->slug === "circulaire-renovatie"
|| $thematique->slug === "au-quotidien"
|| $thematique->slug === "dagelijks"
) continue;
// $thematique_icon = get_field('taxonomy_pictures', $thematique->term_id)['icon'];
// $translated_term_id = icl_object_id($thematique->term_id, $thematique->taxonomy, true, ICL_LANGUAGE_CODE);
// $thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $translated_term_id)['icon'];
@ -91,7 +98,7 @@ $page_icon = get_field('page_icon', get_queried_object());
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-faq.svg' ?>" alt="">
<h3 class="card-large-content__link__title"><?php echo get_the_title($faq_page_ID) ?></h3>
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($faq_page_ID) ?></p>
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($faq_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($faq_page_ID) ?>"><?php echo __("Accédez aux questions", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
</div>
<!-- SERVICE -->
<div class="card-large-content__link">
@ -104,7 +111,7 @@ $page_icon = get_field('page_icon', get_queried_object());
<img class="card-large-content__link__page_icon" src="<?php echo get_template_directory_uri() . '/resources/img/pictogrammes/pictogramme-services.svg' ?>" alt="">
<h3 class="card-large-content__link__title"><?php echo get_the_title($services_page_ID) ?></h3>
<p class="card-large-content__link__excerpt"><?php echo get_the_excerpt($services_page_ID) ?></p>
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Accédez aux publications", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
<a class="cta cta--button cta--shadowed" href="<?php echo get_permalink($services_page_ID) ?>"><?php echo __("Voir les services", "homegrade-theme__texte-fonctionnel__faq-archive-questions") ?></a>
</div>