add_rewrite_rule on default post type
This would be bad practice, since WordPress already has a functionality to do this built in. Rewriting the built in functionality is never a good idea. To achieve this the best way is to use Taxonomies. Lets say you create two categories: Foo Bar Now select the categories for the post in question and setup … Read more