From c3dbf85a3c8d32957beaaa34b5e53f4af5393995 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 27 May 2024 15:20:45 +0200 Subject: [PATCH] calling getMainThematique instead of getParentThematique --- blocks/_oldBlocks/questions-container-auto/src/render.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); ?>