[resolved] single.php not not found by The Loop (3 posts)

  1. 18villamos
    Posted 10 years ago #

    There is a "single.php" in my theme directory, but if I link to a single post (eg. http://www.aboutthecomposer.com/blog-test/blog/archives/147/) I get a blank page with "Archives" as the title.

    My understanding is that, in the case of a specific post, WP looks for "single.php", and uses "index.php" if it's not found. I've tested for both single and index, and this blank page isn't coming from either template.

    You may notice that this is buried in a test subdirectory, so I wonder if that's causing it to blow up.

    Now, if I enter the URL as ....../?p=138, the single post does show up as desired, which leads me to think it's a permalink-related problem.

    Up at the root, on my live site, you can see the desired behavior: http://www.aboutthecomposer.com/archives/147/

    Thanks a lot,

  2. moshu
    Posted 10 years ago #

    It might be a permalink issue or some mess caused by a Page titled 'archives' while having the same word in your permalink structure. Or both.

  3. 18villamos
    Posted 10 years ago #

    Thanks. This is resolved now. Turned out to be a bogus post ID in my database. Not sure I quite understand what happened..

Topic Closed

This topic has been closed to new replies.

About this Topic