I am having trouble working with WordPress rewrite rules, and could use some help.
I have a custom post type called _shows_
.
All shows have a single custom taxonomy category _show-category_.
A _show_
will never have more than one _show-category_
.
I would like my urls to route in this manner:
www.mysite.com/shows/ => archive-shows.php
www.mysite.com/shows/%category%/ => taxonomy-show-category.php
www.mysite.com/shows/%category%/%postname%/ => single-shows.php
So as a real world example, lets say we have a _show-category_
"Foo" and a _show_
post titled "Bar" that has "Foo" as it's _show-category_
. I would expect my WordPress app to look like this:
www.mysite.com/shows/foo/ => shows all posts under the foo category
www.mysite.com/shows/foo/bar => shows the indivual post
I try to avoid plugins when possible, but am open to any solution.