CPT, Custom Taxonomy and slugs
-
I created a custom post type discography (slug ‘music’).
And I created a taxonomy for discography types.
I want music/albums to show the archive page for the discography type
And music/albumtitle to show single-discography.php.
If I set no certain slug for custom taxonomy, music/albums works fine (as well as archive page for the cpt) but music/albumtitle gives me a 404 error.
If I set a slug for the custom taxonomy ‘music/albumtitle’ works but instead of music/albums I have to use music/list/albums (or similar) as I can’t set the same slug to cpt and custom taxonomy.
I’m stuck now. Does anyone know if there is a solution to this?
- The topic ‘CPT, Custom Taxonomy and slugs’ is closed to new replies.