My pretty permalink clearly shows the query_var:
localhost/site/?tree=312
Yet when I run
var_dump(get_query_var('tree'));
I get NULL returned.
Any reason why? Also when I print_r($wp_query), I can't find 'tree' anywhere.
|
My pretty permalink clearly shows the query_var:
Yet when I run
I get NULL returned. Any reason why? Also when I print_r($wp_query), I can't find 'tree' anywhere. |
|||||||||||
|
|
You have to add any query vars that are not WordPress objects to the array of recognized query vars to be able to retrieve it from the
|
|||||
|