Using the same slug for multiple taxonomies?
-
I’m creating a database of films using custom post types and taxonomies. I have a custom post type for movies and taxonomies for actors, directors, writers, and producers. I want to display the taxonomies on each film’s custom post page and make it all function like a sort of mini-IMDB, where clicking an actor’s name shows you a list of all of their films in the database.
Everything works fine until I run into someone like Wes Craven, who has done much more than directing. He has also written, produced, and acted in several films. This means I have a “Wes Craven” in several taxonomies, all of which have different post slugs. I have a different archive page for “director/wes-craven”, “actor/wes-craven”, “producer/wes-craven” etc. This isn’t really ideal. One page for all of them would be better.
I tried to give all of the different taxonomies the same slug (I used “people”), which kind of works. However, it causes not found errors for any names that don’t have their own entry in each taxonomy, which isn’t good because most people don’t need entries in each taxonomy and adding them all to every one would be really time consuming.
Any ideas on how I can make this work correctly? I’ve tried Googling but it’s a very specific problem so it’s not the easiest thing to search for.
- The topic ‘Using the same slug for multiple taxonomies?’ is closed to new replies.