I've got a posts page (using single.php )and I wish to have the ability to some how query the publish that taxonomy category it's in. Is possible? I have checked out every wordpress function on the planet and none appear to help you query with this.

I have tried personally this on other kinds of pages:

 if(is_tax('taxnamehere')) {

However when I recieve directly into single.php (the publish page) this no more works

Thought it was.

$terms = get_the_terms( $post->ID , 'leadership' );
if(is_array($terms)) {
    foreach( $terms as $term ) {
        $tax = $term->slug;

returns the course inside the taxonomy.