Support » How-To and Troubleshooting » Where do pages load?

Where do pages load?

  • What function/file/class whatever decides while file to load?

    What I mean is…when I got to mysite.com/wordpress/?cat=### it automagically loads the archives.

    Which file makes that call?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Justin Tadlock


    WordPress God

    It depends on your theme if I understand your question correctly.


    Unless you’re asking what WordPress files/functions load your templates.

    OK…let me try rephrasing.

    So, at present ?cat=### loads a category. It automatically loads the archive.php from the template. Where does it get the instruction to do that (that $_GET[‘cat’] == archive.php)

    What I’m trying to do it create a page, foo.php, and have that loaded when someone goes to the url ?foo=###.

    I wanted to add that I looked into the wp_query (queries.php) and it doesn’t have the information that I’m looking for. I want to add another case to the archive loading…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where do pages load?’ is closed to new replies.