I have spent days now trying to figure this out, StackOverflow is my last resort. All I want is the following:
For posts this is insane easy, just adding /%category%/%postname%.html as a permalink does the trick. However for custom post type this seems insane tough.
I have a registered post_type project. And a taxonomy project_category
Now I like my permalinks to turn out as
/project - Overview of projects in all categories. /project/CATEGORY - Overview of projects within that category. /project/CATEGORY/SUBCATEGORY - Overview of projects within that subcategory. /project/CATEGORY/SUBCATEGORY/postname - The actual post.
Probably wp_rewrite needs to help me out here tho I have no clue how. Can anyone help me out?
I’ve just gotten my head around Doing something similar. This is adapted from this tutorial
Edit: sorry, but code hinting is completely not working for me today. Code is in above link