WordPress.org

Ready to get started?Download WordPress

Forums

WP doesn't recognize single.php (8 posts)

  1. ben@backstar.com
    Member
    Posted 5 years ago #

    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: http://backstar.com/wpsinglephp.txt

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

  2. Steffen Jørgensen
    Member
    Posted 5 years ago #

    Do you mean pages or posts?
    Pages should use the page.php file, and posts use the single.php file.

  3. ben@backstar.com
    Member
    Posted 5 years ago #

    individual posts is what i mean

  4. TheDoc
    Member
    Posted 4 years ago #

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

  5. tracyberna
    Member
    Posted 4 years ago #

    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?

  6. Peter Boosten
    Member
    Posted 4 years ago #

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

    Peter

  7. sciarrino
    Member
    Posted 4 years ago #

    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?

  8. sciarrino
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic