I have several post types "Courses", "Institutes" having same taxonomy "country". I am using this to get term on single-courses.php
<?php
$terms = get_the_terms( $post->ID , 'country' );
foreach ( $terms as $term ) {
$term_link = get_term_link( $term, 'country' );
if( is_wp_error( $term_link ) )
continue;
echo '<a href="' . $term_link . '">' . $term->name . '</a>';
}
?>
When I click term, it get all post types having "country" taxonomy. How can I use it to get ONLY CURRENT POST TYPE.