WordPress.org

Ready to get started?Download WordPress

Forums

single.php ignored - WP calls index.php inseat (6 posts)

  1. janper
    Member
    Posted 2 years ago #

    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!

  2. dogoodzilla
    Member
    Posted 2 years ago #

    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

  3. janper
    Member
    Posted 2 years ago #

    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

  4. janper
    Member
    Posted 2 years ago #

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

  5. janper
    Member
    Posted 2 years ago #

    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

  6. janper
    Member
    Posted 2 years ago #

    correction - some links work, some don't

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags