Passing URL parameters to WordPress pages and pretty url

You’re forming a GET request, i.e. ?var=1&var2=2 but you’ve sent it as a POST request, you need to send the request as a GET request so that the variables are displayed in the url bar as you expect them to be displayed.

Leave a Comment