diff --git a/blocks/_oldBlocks/questions-container-auto/src/render.php b/blocks/_oldBlocks/questions-container-auto/src/render.php index 150ea97..61b0ae1 100644 --- a/blocks/_oldBlocks/questions-container-auto/src/render.php +++ b/blocks/_oldBlocks/questions-container-auto/src/render.php @@ -23,7 +23,7 @@ $relatedPosts = new WP_Query($args); have_posts()) : $relatedPosts->the_post(); $thematique = get_the_terms(get_the_ID(), 'thematiques')[0]; - $thematiqueParent = getParentThematique($thematique); + $thematiqueParent = getMainThematique($thematique); $thematiqueColorSlug = getThematiqueFamilySlug($thematiqueParent->slug); ?>