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?
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?
It depends on your theme if I understand your question correctly.
See:
http://codex.wordpress.org/Template_Hierarchy
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...
This topic has been closed to new replies.