Creating a dynamic URL structure
Demonstrated here: http://thereforei.am/2011/10/28/advanced-taxonomy-queries-with-pretty-urls/ Here’s the final code to autogenerate the necessary rules: It’s quite likely you will at some stage want to programmatically generate rewrite rules for multiple custom post types with various taxonomies. You could do it manually, but that’s no fun. Let’s use an automatic rewrite rule generator. The function below takes a … Read more