Excluding post category in The Grid with additional Arguments

I am trying to exclude a category in a grid and refer to the following post:

Unfortunately, the argument “post_type = ‘post’” is ignored completely.
What could be the reason?

My Code:

function my_query_args($query_args, $grid_name) {
	if ($grid_name == 'Blog') {
		// all query parameters can be modified (https://codex.wordpress.org/Class_Reference/WP_Query)
		$query_args = array(
			'cat' => -94,
			'post_status' => 'publish',
			'post_type' => 'post',
		);
		
	}
	return $query_args;
}
add_filter('tg_wp_query_args', 'my_query_args', 10, 2);

Hi Stefan,

Unfortunately, The Grid plugin is not a bundled plugin anymore and is beyond the scope of Theme Support. I would suggest you contact the Plugin Author on this case, or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.