<?php $specialist_post = new WP_Query([
'post_type' => 'specialist',
'posts_per_page' => -1
]); ?>
<?php
$taxes = get_the_taxonomies( get_the_ID() );
vardump($taxes);
?>