Support » Fixing WordPress » 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)
  • I’m trying to achieve the same thing, and I too haven’t figured out how to create a permalink to view custom post type of a specified taxonomy!

Viewing 1 replies (of 1 total)
  • The topic ‘Single Taxonomy, multiple custom post types’ is closed to new replies.