CPT and rewrite rules
Finally, found a solution mix: The CPT has to have: ‘has_archive’ => ‘library’, // Fixes the archive URL. ‘rewrite’ => array( ‘slug’ => ‘library/%library-category%’, ‘with_front’ => false, ) Taxonomy should be as following: ‘rewrite’ => array( ‘slug’ => ‘library’, ‘with_front’ => false, ), And than you need to rewrite the links: /** * Custom rewrite … Read more