Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to get the value of a $_GET variable on the homepage of my site. For some reason I can't access any $_GET variables on the homepage, but I can access them just fine on other pages. Does anyone know why this might be?

share|improve this question
3  
can you give us some sample code? $_GET should be accessible in all pages. what do you get when u do echo $_GET ? –  rexposadas Dec 9 '11 at 22:31
add comment

1 Answer 1

Most probably the reason is that WordPress uses the default query on the homepage, which maybe the reason why you are getting an empty array for $_GET.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.