diff --git a/includes/utilities.php b/includes/utilities.php
index 092f667..e60c1b8 100644
--- a/includes/utilities.php
+++ b/includes/utilities.php
@@ -1,4 +1,5 @@
+
+
diff --git a/taxonomy-thematiques.php b/taxonomy-thematiques.php
index 151ebfc..57dbee4 100644
--- a/taxonomy-thematiques.php
+++ b/taxonomy-thematiques.php
@@ -1,42 +1,36 @@
-parent ? get_term(get_queried_object()->parent, 'thematiques') : get_term(get_queried_object(), 'thematiques');
-$thematiqueColorSlug = getThematiqueFamilySlug($thematique_generale->slug);
+/************/
+/* PAGE FAQ */
+/************/
+?>
+
-$current_children_thematique = get_queried_object()->parent != 0 ? get_queried_object() : null;
-
-
-$args = array(
- 'posts_per_page' => 1,
- 'post_type' => 'conseils',
- 'tax_query' => array(
- array(
- 'slug' => 'locations',
- 'taxonomy' => 'thematiques',
- 'field' => 'slug',
- 'terms' => get_queried_object()->slug,
- // 'include_children' => false,
- )
- )
-);
-$query_current_thematique_posts = new WP_Query($args);
-$thematique_related_page = $query_current_thematique_posts->posts[0];
-
-
-
-$archiveQuestions = get_page_by_template('template-archive-questions.php')[0];
+slug);
+$sousThematiques = get_terms(array(
+ 'child_of' => $mainThematique->term_id,
+ 'taxonomy' => 'thematiques',
+ 'hide_empty' => true,
+));
?>
+
-
- parent) : ?>
- $thematique_generale->term_id,
- 'taxonomy' => 'thematiques',
- 'hide_empty' => true,
- ));
-
- ?>
-
-
-
-
-
-
-
-
+slug : "" ?>"">
get_queried_object_id(),
'title' => __("Les questions les plus fréquentes sur ", "homegrade-theme__texte-fonctionnel__faq-archive-questions") . get_queried_object()->name,
- 'sub-title' => $thematique->name,
- 'thematique' => $thematique,
- 'thematique_generale' => $thematique_generale,
+ 'sub-title' => $currentThematique->name,
+ 'thematique' => $currentThematique,
+ 'thematique_generale' => $mainThematique,
'thematiqueColorSlug' => $thematiqueColorSlug,
)
); ?>
+
+
+
+
-
"">
- 'questions',
- 'posts_per_page' => -1,
- 'tax_query' => array(
- array(
- 'taxonomy' => 'thematiques',
- 'field' => 'term_id',
- 'terms' => $thematique_generale->term_id,
+
+
-
+ 'questions',
+ 'posts_per_page' => -1,
+ 'tax_query' => array(
+ array(
+ 'taxonomy' => 'thematiques',
+ 'field' => 'term_id',
+ 'terms' => $mainThematique->term_id,
+ )
+ )
+);
+$relatedTaxQuestions = new WP_Query($query_args);
+
+
+?>
+posts) ?>
+have_posts()) : while ($relatedTaxQuestions->have_posts()) : $relatedTaxQuestions->the_post(); ?>
+
+
+
+
+
+
 . '/resources/img/graphic-assets/chevron_down.svg' ?>)
+
+
+
+
+
+
+
+
+
+
+
+
+