Really mysterious. I'm developing a WP 2.0.1 blog (on my local machine - can't give a link, sorry). I've created some custom page templates and based some pages on them, but instead of loading those pages when I click on the link that automatically appears in my sidebar, WP loads index.php instead. Anyone have any thoughts why this might be happening? I've been trying to find information in the codex about what point WP decides which page template is going to load when requesting a page, and I found a page that says it goes in the order of custom-page-template.php, page.php, index.php, but nothing about why it might ignore my custom-page-template.php and page.php and load index.php instead. I know it's loading index.php because I put
die('loaded index.php'); at the top of my index.php page and that's what displayed when I clicked on the link to the page in the page list in my sidebar.
Alternatively, does anyone know where in the WP code it decides which template it should load, so I can check some variables to find out what isn't being set properly?