The $ _GET parameter is not populated although the url is in the appropriate form
I am working on a new wordpress site that is exhibiting strange behavior. I pass it a URL with GET parameters in it and the parameter is $_GET
not populated. I can see in the parameter $_SERVER
that REQUEST_URI
has the full url in there, filled with part ?var=value
, but no love in the variable $_GET
.
The url is redirected with mod_rewrite
, but given the fact that the REQUEST_URI
whole thing shows, I think this is not the likely culprit.
Sorry, but old, but whoever might read this: Wordpress won't use native $ _GET variables out of the box: you need to register these custom vars first so WP can use them.
I'm not an expert on this, but I remember finding very good tutorials on this. Search for "add new wp-requests vars"
source to share