i have trouble with get_query_var. when I write a page using template page and saved by name ‘product’, get_query_var(‘pagename’) couldn’t display a value. when i called it, it should be generate a value = ‘product’ right…?!
the script was put on the sidebar. i don’t know why the value can displayed on the header’s area….
anybody can explain that…?thanks
- The topic ‘get_query_var can’t work on the sidebar’ is closed to new replies.