refining related brochure query args
This commit is contained in:
parent
de17871391
commit
9c8201beee
|
|
@ -97,11 +97,13 @@ if (!function_exists('build_share_urls')) {
|
||||||
$queryArgs = array(
|
$queryArgs = array(
|
||||||
'post_type' => 'brochures',
|
'post_type' => 'brochures',
|
||||||
'posts_per_page' => 1,
|
'posts_per_page' => 1,
|
||||||
|
'status' => 'publish',
|
||||||
'tax_query' => array(
|
'tax_query' => array(
|
||||||
array(
|
array(
|
||||||
'taxonomy' => 'thematiques',
|
'taxonomy' => 'thematiques',
|
||||||
'field' => 'term_id',
|
'field' => 'term_id',
|
||||||
'terms' => $currentThematique->term_id
|
'terms' => $currentThematique->term_id,
|
||||||
|
'include_children' => false,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user