Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I Would use Custom Post Type and hierarchical Taxonomies with same Slug. Fortunately I found a good solution based on post_type_link filter here from TheDeadMedic.

The only problem is subcategory pages get 404.

So these URLs work: 

But subcategory pages don't work in hierarchical structure:

I can only access these subcategories without hierarchical structure. So these URLs work:

Have you got any idea how I could extend TheDeadMedic's solution to hierarchical taxonomies too.

share|improve this question

1 Answer 1

Add to the taxonomy registration:

'rewrite' => array( 'hierarchical' => true )
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.