Problem with add_rewrite_rule
You’re missing the WP $matches[1] syntax for the regex that gets matched. I think you want /? on the end too. Easiest way I found to test was to temporarily put flush_rewrite_rules() in whilst testing, then you don’t have to do anything else. I have a similar regex which sends /foo/catname/ to index.php?taxonomy=category&term=catname, here’s what … Read more