Support » Fixing WordPress » In what location does the global variable $wp_query get setup?

  • I’m trying to do somethings like filter the results in one page based on the category id from the page from which it came. So, I would like to set up a global variable or get access to the current $wp_query global variable before it runs the new one.

    Is there a way to do this and where do I have to do it?

    Thanks!!

Viewing 1 replies (of 1 total)
  • I think this video is great. He goes into detail about how and queries are loaded and when. It had a couple ah-ha moments for me. It may not answer your specific question, or it might.

Viewing 1 replies (of 1 total)
  • The topic ‘In what location does the global variable $wp_query get setup?’ is closed to new replies.