add_filter( 'vcex_grid_query', function( $args, $atts ) {
if ( is_singular( 'post' ) ) {
$current_post_slug = get_post_field( 'post_name' );
$args['category_name'] = $current_post_slug;
$args['post_type'] = 'post';
}
return $args;
}, 10, 2 );
These query args match default post term (category) slugs with default post title slugs.
But I want it to match post type term (category) slugs with default post title slugs.
How do I change the code to achieve this?