How to properly rewrite url by custom var
I’ve been trying to rewrite a shop uri, and what I have now is this code: add_filter(‘rewrite_rules_array’,’wp_insertMyRewriteRules’); add_filter(‘query_vars’,’wp_insertMyRewriteQueryVars’); add_filter(‘wp_loaded’,’flushRules’); // Remember to flush_rules() … Read more