How to get all taxonomies associated with a Custom Post Type In WordPress?

 Get all taxonomies associated with a Custom Post Type In WordPress.





With this code, you will be easily able to get all the taxonomies of the Custom Post Type. Just copy and paste these codes and Enjoy.


// Here case_category is the texonomay name
<?php 
$args = array(
         'taxonomy' => 'case_category',
          'orderby' => 'name',
  'order'   => 'ASC'
);

$cats = get_categories($args);
foreach($cats as $cat) {
echo '<li><a href="'.get_category_link( $cat->term_id ).'">'.$cat->name.'</a></li>';
}

?> 


Get all taxonomies associated with a Custom Post Type In WordPress.