Support » Fixing WordPress » single.php not not found by The Loop

  • Resolved 18villamos

    (@18villamos)


    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,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • moshu

    (@moshu)

    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.

    18villamos

    (@18villamos)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘single.php not not found by The Loop’ is closed to new replies.