parent ? get_term(get_queried_object()->parent, 'thematiques') : get_term(get_queried_object(), 'thematiques');
$thematiqueColorSlug = getThematiqueFamilySlug($thematique_generale->slug);
$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];
?>
parent) : ?>
$thematique_generale->term_id,
'taxonomy' => 'thematiques',
'hide_empty' => true,
));
?>
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,
'thematiqueColorSlug' => $thematiqueColorSlug,
)
); ?>
"">
'questions',
'posts_per_page' => -1,
'tax_query' => array(
array(
'taxonomy' => 'thematiques',
'field' => 'term_id',
'terms' => $thematique_generale->term_id,
)
)
);
$questions = new WP_Query($query_args);
?>
have_posts()) : while ($questions->have_posts()) : $questions->the_post(); ?>