Hi i use the grid to display post and custom post type (video) all my post and CPT use category and publisher (a custom taxonomy) i would like to exclude certain publisher form my grid :
this is the code i use but when it execute my page where the grid is displaying saying (no post was found)
function my_query_args($query_args, $grid_name) {
if ($grid_name == 'Spotrise Basic Grid') {
// all query parameters can be modified (https://codex.wordpress.org/Class_Reference/WP_Query)
$query_args['publisher'] = -56; /*11 is the category ID you want to exclude*/
}
return $query_args;
}
add_filter(ātg_wp_query_argsā, āmy_query_argsā, 10, 2);