Closed mayeenulislam closed 6 years ago
O, I got it. It's actually possible being in the current version. You just have to filter the page query with the Support Desk query filter hook:
ns_filter_support_desk_query
For example put the following code into your theme's functions.php
to display tickets only of the department ID#268
:
add_filter('ns_filter_support_desk_query', function( $args ) {
$args['tax_query'] = array(
array(
'taxonomy' => 'nanosupport_department',
'field' => 'term_id',
'terms' => 268 // <--------- Your department id here
)
);
return $args;
});
You can get the term ID by clicking on the Department to edit, or simply by hovering on it:
WP_Query()
Taxonomy KnowledgebaseRead more about the Taxonomy parameters of WP_Query()
User elizxer requested a feature to let 'em enable displaying all the tickets of specific department/departments only.