Support » Themes and Templates » WP doesn’t recognize single.php

  • WordPress will only open individual pages in the index.php template. I have tried for a long time, unsuccessfully, to get it to open them in my single.php template, but it refuses.

    Interestingly, this seems to be happening in the default themes also (in fact, the single.php page I’m currently trying to get working might just be a copy from the default theme).

    Can anyone tell me why this is? And how to fix it?

    Here is a text version of my single.php file:

    Note: single.php is in the same directory as my index.php template in its theme folder

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do you mean pages or posts?
    Pages should use the page.php file, and posts use the single.php file.

    individual posts is what i mean

    Anything on this? I’ve just run into the same problem.

    I’d like to bump this thread up if I could – I’m having the exact same problem. Where could one start to look for the cause of this?

    did this just show up, or after for instance a theme change or maybe a specific post?


    Have the same problem. WP just won’t recognize the singel.php page. Have the latest version of WP, 2.8.5.
    Tried with multiple, and different singel.php files, but nothing seem to work.
    WP uses index for singel post no matter what I do.

    Any suggestions out there?

    This worked for me:

    Deleted singel.php.
    copied singel.php from default theme.
    in theme editor i deleted all content of the singel.php and copied in my own singel.php code.

    Don’t know why, but it works.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP doesn’t recognize single.php’ is closed to new replies.