calling getMainThematique instead of getParentThematique

This commit is contained in:
Antoine M 2024-05-27 15:20:45 +02:00
parent 4624e44deb
commit c3dbf85a3c

View File

@ -23,7 +23,7 @@ $relatedPosts = new WP_Query($args);
<?php while ($relatedPosts->have_posts()) : <?php while ($relatedPosts->have_posts()) :
$relatedPosts->the_post(); $relatedPosts->the_post();
$thematique = get_the_terms(get_the_ID(), 'thematiques')[0]; $thematique = get_the_terms(get_the_ID(), 'thematiques')[0];
$thematiqueParent = getParentThematique($thematique); $thematiqueParent = getMainThematique($thematique);
$thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug); $thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug);
?> ?>
<article class="homegrade-blocks__texte-fonctionnel"> <article class="homegrade-blocks__texte-fonctionnel">