This question already has an answer here:
As the title says, I want to remove the taxonomy slug from URL. Instead, I want to keep the post type slug. For example: I have a post type called "Books" (
rewrite_slug = books) and a taxonomy called "Genre" (
rewrite_slug = genre) which includes "Science fiction", "Drama", "Comedy" etc.
Right now I have two options which work:
I want the url to look like:
Is there a simple rewriting rule for this?