Get the posttype of a taxonomy/term
On StackOverflow user indextwo suggests to do the following: Use the get_taxonomy( $taxonomy-slug ) function which returns an object that contains all the associated post types. As suggested in the comments, we can then use get_post_type_object( $post-type-slug ) to get the object and Singular Label. $post_type_names = array(); // Array( ‘post-type-slug’ => ‘Post Type Label’ … Read more