Custom Taxonomy Slug
-
When creating custom post types and custom taxonomies I always seem to have trouble getting the rewrite slug to be what I want.
If I have a custom post type called Books
and a custom taxonomy called AuthorsI end up with this
https://www.mysite.com/books/mybook – this is good
https://www.mysite.com/authors/john-doe – this is not what I want.I want this for the taxonomy
https://www.mysite.com/books/authors/john-doe/ – how do I make this happen.Basically how do I put the custom post type in front of the custom taxonomy in the slug/url
- The topic ‘Custom Taxonomy Slug’ is closed to new replies.