The below will return the other post in the same category but it will also return the current post too.
Is there a way to exclude the current post from the query?
$args = array(
'post_type' => 'custom_post_type',
'tax_query' => array(
array(
'taxonomy' => 'custom_taxo',
'field' => 'term_id',
'terms' => array(1,2,5),
'operator' => 'IN'
)
)
);
$query = new WP_Query( $args );