Hi all,
I´m PHP Developer but its my firs time using WordPress.
I wrote some outputs in the theme files to discover with file is running. I had this result:
IN URL: myblog/index.php?cat=4
RUNS THE FILE IN THEME FOLDER: archive.php
IN URL: myblog/index.php?page_id=5
RUNS THE FILE IN THEME FOLDER: page.php
IN URL: myblog/index.php?page_id=5
RUNS THE FILE IN THEME FOLDER: index.php
Notice that all the URLs calls the index.php but just the last one really runs the file index.php.
I testes in different themes, and all works in the same way.
I can´t wonder what file and how it does do this switch, to choose the file .php thal will be running a analyzing the args after "?";
Could you guys help me please?
I want to know this to run posts of differenst categories in different pages.
Thank You very much.
Nakid