How to have the same url structure for both a CPT and a Taxonomy?

There is no easy way, because it will cause conflicts. This means you have to solve those conflicts yourself and implement some logic, that will determine what to show. Here’s sample approach: add_filter( ‘term_link’, ‘repair_categories_link’, 10, 3 ); add_action( ‘parse_request’, ‘repair_links’ ); add_action( ‘pre_get_posts’, ‘repair_query_post_type’ ); // First we have to modify links for categories … Read more