WordPress get_query_var()

后端 未结 3 1671
闹比i
闹比i 2021-02-07 12:10

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

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 12:33

    To troubleshoot, what variables are being used in the request use following code

    global $wp_query;
    var_dump($wp_query->query_vars);
    

提交回复
热议问题