refining related brochure query args

This commit is contained in:
Antoine M 2023-12-06 16:23:09 +01:00
parent de17871391
commit 9c8201beee

View File

@ -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,
)
)
);