Where do pages load? (4 posts)

  1. Rebecca O'Brien
    Posted 6 years ago #

    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?

  2. Justin Tadlock
    WordPress God
    Posted 6 years ago #

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


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

  3. Rebecca O'Brien
    Posted 6 years ago #

    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=###.

  4. Rebecca O'Brien
    Posted 6 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.