Custom post type plus custom taxonomy permalink structure
-
With custom post types and custom taxonomies at play is there any way to structure premalinks like this:
https://site.com/portfolio/ (all category index)
https://site.com/portfolio/photography/ (category index)
https://site.com/portfolio/photography/lorem-ipsum-dolor/ (single post)Right now I can get it to work only 2 ways. Like this:
https://site.com/portfolio/ (archive-portfolio.php)
https://site.com/portfolio/photography/ (taxonomy.php)
https://site.com/portfolio/lorem-ipsum-dolor/ (single-portfolio.php)Or like this:
https://site.com/portfolio/ (page-portfolio.php page template)
https://site.com/portfolio/category/photography/ (taxonomy.php)
https://site.com/portfolio/lorem-ipsum-dolor/ (single-portfolio.php)Custom post types and cust taxonomies have come a long way, but they’re still not very smooth. Any help would be appreciated. Thanks!
- The topic ‘Custom post type plus custom taxonomy permalink structure’ is closed to new replies.