I am busy developing a WordPress application and I need to be able to pass url parameters using WordPress functions. I use add_query_arg() function to add a url par
add_query_arg()
To troubleshoot, what variables are being used in the request use following code
global $wp_query; var_dump($wp_query->query_vars);