FEATURE Update term filtering logic in template-archive-conseils and template-archive-questions to include 'gerer-ses-travaux' and 'werkzaamheden-beheren'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nonimart 2025-12-03 14:57:52 +01:00
parent cb50bbb0ba
commit 4c7091e6d4
2 changed files with 2 additions and 13 deletions

View File

@ -31,11 +31,7 @@ $page_icon = get_field('page_icon', get_queried_object());
<ul class="archive-page-header__terms-grid"> <ul class="archive-page-header__terms-grid">
<?php foreach ($thematiquesTerms as $thematique) : ?> <?php foreach ($thematiquesTerms as $thematique) : ?>
<?php <?php
if ( if ($term->slug === "aides-financieres" || $term->slug === "financiele-steun") continue;
$thematique->slug === "au-quotidien"
|| $thematique->slug === "dagelijks"
) continue;
$original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', FALSE, 'fr'); $original_term_ID = apply_filters('wpml_object_id', $thematique->term_id, 'thematiques', FALSE, 'fr');
$thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon']; $thematique_icon = get_field('taxonomy_pictures', $thematique->taxonomy . '_' . $original_term_ID)['icon'];

View File

@ -30,14 +30,7 @@ $page_icon = get_field('page_icon', get_queried_object());
<ul class="archive-page-header__terms-grid"> <ul class="archive-page-header__terms-grid">
<?php foreach ($thematiquesTerms as $thematique) : ?> <?php foreach ($thematiquesTerms as $thematique) : ?>
<?php if ( <?php if (
$thematique->slug === "durabilite" $thematique->slug === "aides-financieres" || $thematique->slug === "financiele-steun" | $thematique->slug === "gerer-ses-travaux" | $thematique->slug === "werkzaamheden-beheren"
|| $thematique->slug === "duurzaamheid"
|| $thematique->slug === "au-quotidien"
|| $thematique->slug === "dagelijks"
|| $thematique->slug === "aides-financieres"
|| $thematique->slug === "financiele-steun"
|| $thematique->slug === "gezondheid-veiligheid-hygiene"
|| $thematique->slug === "sante-securite-salubrite"
) continue; ?> ) continue; ?>
<?php <?php