custom post type and taxonomy share one slug
-
what is about:
Let’s say you created custom post type under slug “movies”.
Now you have created taxonomy “Genre” with the same slug “movies”.The idea is for the obvioius logic. Taxonomy is for filtering. It’s more naturl to filter movies by /movies/horror/ then /movies/genre/horror or /genre/horror.
I use plugin “Simple Custom Post Type Archives” to make working /movies/ url that lists the posts. But cannot make WP to catch correctly taxonomy term link (/movies/horor).
I tried to solve it by hooking into “template_redirect”. But the problem is here already comes 404 status header… So seams the only way is deal with redirects or maybe there is other options I don’t know.
Anyway… I need help. Who has idea how to overcome it? I’m sure I’m not the only that would like to make it.
- The topic ‘custom post type and taxonomy share one slug’ is closed to new replies.