Displaying custom taxonomy menu in custom post type archive

Displaying two different menus base on the archive is no problem using is_post_type_archive() What you are looking for is essentially the link to an term archive that only contains posts of a certain post type. Something like /index.php?term=US&post_type=pub. As far as I’m aware of WordPress doesn’t offer this natively. You will have to create your … Read more

What is the best way to change sidebars based on custom taxonomy terms?

There are 2 options that comes in mind First use a conditional statement is_tax(‘taxonomy-name’, ‘term name’). is_tax(‘fruits’, ‘apples’){ get_sidebar(‘apples’); get_sidebar(‘apples-right’); } if is_tax(‘fruits’, ‘oranges’) { get_sidebar(‘oranges’); get_sidebar(‘oranges-right’); } Or, the second option, use a different template file instead. taxonomy-fruits-apples.php should use get_sidebar(‘apples’); get_sidebar(‘apples-right’); taxonomy-fruits-oranges.php should use get_sidebar(‘oranges’); get_sidebar(‘oranges-right’); Hope this help

Custom category URL not displaying posts

First check if custom post type + taxonomy archive displaying correct posts by visiting a url structure like this – mysite.com/?post_type=products&products-category=monitors If it’s working then you can do some custom rewrite rules to show them just like you want. Here are some recommended answers on WPSE describing same Mixing custom post type and taxonomy rewrite … Read more

How do i make this Taxonomy term code work?

is_tax() is a check for taxonomy archive page and as I understand you want this for individual posts. The function to use would be has_term(): if ( has_term( ‘pretty-little-liars’, ‘series’ ) ) Also it’s good practice to enqueue style properly via wp_enqueue_style().