I have a custom post type with a custom taxonomy.
The custom post type is news.
The custom taxonomy is new_category.
What I want is the possibility two operate link that:
http://example.com/news/ -> show news archive
http://example.com/news/movies/ -> show category movie archive
http://example.com/batman-returns/ -> show post content called "Batman Returns"
I tried this, but doesn't work:
add_rewrite_rule('^news/([^/]*)/?','index.php?post_type=news&news=$matches[1]','top');
add_rewrite_rule('^news/([^/]*)/?','index.php?post_type=news&news_category=$matches[1]','top');
Suggestions?