calling getMainThematique instead of getParentThematique
This commit is contained in:
parent
4624e44deb
commit
c3dbf85a3c
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user