Wordpress add_rewrite_rule for page redirecting incorrectly Wordpress add_rewrite_rule for page redirecting incorrectly wordpress wordpress

Wordpress add_rewrite_rule for page redirecting incorrectly


Turned out that my script was using a custom function to grab the GET parameters via the $_REQUEST object, which was being nullified by wordpress.

I used the following code to grab it instead.

global $wp_query;$wp_query->query_vars['cc'];