• Hi,

    I am making a theme with 3 custom single_category.php templates. I didn’t have any trouble creating the first two, but now I can’t create a third one.

    I created an article and put it in category “Stuff”. Then I uploaded my single_stuff.php into the theme folder. And when I open my article, here’s the message I get :


    Warning: include(/myurl/wp-content/themes/mytheme/single_default.php) [function.include]: failed to open stream: No such file or directory in /myurl/wp-content/themes/mytheme/single.php on line 11

    Warning: include() [function.include]: Failed opening ‘/myurl/wp-content/themes/mytheme/single_default.php’ for inclusion (include_path=’.:/usr/lib/php5′) in /myurl/wp-content/themes/mytheme/single.php on line 11

    I’d be grateful for any hint ^^

Viewing 1 replies (of 1 total)
  • Moderator cubecolour

    (@numeeja)

    Does it work if you use a hyphen rather than an underscore in the template filename?
    ie if you rename
    single_stuff.php to single-stuff.php

Viewing 1 replies (of 1 total)
  • The topic ‘Single template failed to open’ is closed to new replies.