views:

12

answers:

1

My single pages and posts are not being loaded by single.php, instead they are being loaded in index.php

I'm not able to figure out the reason for this. My is a template which I have made myself and the loop in index.php is almost the same in the default theme of wordpress 3. This is creating lots of troubles for me. What could be the possible reasons?

+1  A: 

Pages use page.php. If your single blog posts are not using single.php, then chances are either a plugin or your theme is screwing with the query before template_redirect fires. More information on template hierarchy here:

http://codex.wordpress.org/Template_Hierarchy

John P Bloch