• hi
    i’ve been working on my custom template for a while now and all of a sudden wordpress stopped using my single.php template file. it always calls index.php instead. i even tried to rename the template, switch templates back and forth or replacing the real single.php with a dummy php just to see if it works – and no, it doesn’t.
    it worked before.
    where should i even look for the problem?

    will be thankful for any suggestion!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You could work with references to other loops using get_template_part:

    Add http://pastebin.com/jWk5BZJU to index.php and put your loop for single posts in a file that you name loop-single.php

    Thread Starter janper

    (@janper)

    i see.
    this would, however mean a wholly new concept. i might go for that, because it could make some things easier, but for the moment i’d like to know what happened to my single.php

    Thread Starter janper

    (@janper)

    ok,there was something wrong in functions.php. not sure what though, but it works now. thanks!

    Thread Starter janper

    (@janper)

    no, this is just wrong! i haven’t touched the site for a couple of days and it doesn’t work again. the same problem

    Thread Starter janper

    (@janper)

    correction – some links work, some don’t

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘single.php ignored – WP calls index.php inseat’ is closed to new replies.