taxonomy template for custom post type the same as the archive

Thanks for Milo’s pointer function department_template( $template=”” ) { if (is_tax(‘department’) ) { $template = locate_template( ‘archive-team.php’ ); } return $template; } add_filter( ‘taxonomy_template’, ‘department_template’ ); Worth noting this doesn’t disturb the hierarchy if another taxonomy is involved, ie taxonomy-othertax.php is called correctly for taxonomy ‘othertax’.

Show Custom Taxonomy Title

You can use single_term_title(): <h3><?php single_term_title(); ?></h3> To hide it if there are no posts, use the if ( have_posts() ) : function: <?php if ( have_posts() ) : ?> <h3><?php single_term_title(); ?></h3> <?php endif; ?> If not an archive, you can use get_term_by() to get the term object for the term and then echo … Read more

Custom Taxonomy Not Showing in Menu

As seen in the Codex: http://codex.wordpress.org/Function_Reference/register_taxonomy <?php add_action( ‘init’, ‘create_book_tax’ ); function create_book_tax() { register_taxonomy( ‘genre’, ‘book’, array( ‘label’ => __( ‘Genre’ ), ‘rewrite’ => array( ‘slug’ => ‘genre’ ), ‘hierarchical’ => true, ) ); } ?> From what I see in your code, you are not linking the taxonomy to your post-type. Try changing … Read more