I’ve been working with custom post types to separate the portfolio section of my website from my blog. I ran into a problem with the rewrite variables and permalinks.
I set up a custom post type of ‘portfolio’ with a rewrite slug of ‘portfolio’
I set up a custom taxonomy of ‘portfolio-category’ with a rewrite slug of ‘portfolio’
domain.com/portfolio – shows all the portfolio post types using /portfolio.php
domain.com/portfolio/%postname%/ – shows the individual post using /single-portfolio.php
domain.com/portfolio/%portfolio-category%/ – shows all the “landscapes” for example using /taxonomy-portfolio-category.php
I got the first two parts to work OK, but the taxonomy is throwing 404 at me.
If I change the post_type rewrite to something else (‘photo’) then the taxonomy works, fine, but I would like them to share permalinks like the default posts can.
Any help would be great, or if you know how this will play out with the final 3.0 release please share.