Custom permalink structure for custom post types including multiple taxonomy

This code produces the right structure but the post can’t be found (404) That is because the custom rewrite tags (%filter_1% and %filter_2%) appeared as-is in the generated rewrite rules (in the database). So you need to register the tags so that they’re replaced with the proper RegEx (regular expression) pattern when WordPress (re-)generates the … Read more

Custom Rewrite Rule Removing Query String

Two parts to this answer: There are multiple things going wrong with your current example, and some of them are caused by WordPress’s rules making things more complicated. If you don’t mind editing your .htaccess file directly, try this. It avoids having to deal with some WordPress magic that isn’t making things easier here. It … Read more

How to construct a dynamic rewrite rule for child pages that passes more than one query var

First thing to check is make sure you visit permalinks page, or call the flush_rewrite_rules function once after you call add_rewrite_rules otherwise the rule will not get applied. So to restate your question, is it correct that you’re trying to achieve rewriting this: example.com/project-centers/kitchen/x/y/z To this: eample.com/index.php?pagename=kitchen&var1=x&var2=y&var3=z If that’s correct, your code looks like it … Read more