query to get the post with its custom taxonomy wp code example
Example: wordpress get taxonomy of a post
<?php $term_obj_list = get_the_terms( $post->ID, 'taxonomy_name' ); ?>
<?php $term_obj_list = get_the_terms( $post->ID, 'taxonomy_name' ); ?>