Single Taxonomy, multiple custom post types
-
I have 2 custom post types (Partners and Distributors) with a shared taxonomy of ‘country’.
The archive pages are fine but when following the terms the archive page shows posts from both partners and distributors.
I am looking to have a permalink structure as follows:
/partners/ (Show partners archive)
/distributors/ (Show distributors archive)
/partners/{country}/ (Show partners by country)
/distributors/{country}/ (Show distributors by country)My current taxonomy looks like this:
register_taxonomy( 'country', array('distributor','partner'), array( 'hierarchical' => true, 'label' => 'Countries', 'query_var' => true, 'rewrite' => true ) );
Any help or pointers much appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Single Taxonomy, multiple custom post types’ is closed to new replies.