diff --git a/single-conseils.php b/single-conseils.php index d925d75..b33c1f0 100644 --- a/single-conseils.php +++ b/single-conseils.php @@ -97,11 +97,13 @@ if (!function_exists('build_share_urls')) { $queryArgs = array( 'post_type' => 'brochures', 'posts_per_page' => 1, + 'status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'thematiques', 'field' => 'term_id', - 'terms' => $currentThematique->term_id + 'terms' => $currentThematique->term_id, + 'include_children' => false, ) ) );