Ready to get started?Download WordPress


[resolved] Single.php: single post shows EVERY post (8 posts)

  1. mortega
    Posted 5 years ago #

    Built a custom theme for a microsite that am hoping to launch soon.

    Ran into a major roadblock this afternoon and spent the better part of four hours trying to figure this out.

    Everything is fine until you visit a single post as it shows EVERY post.

    Below is my single.php code.

    Something to note: I created a separate header file for single posts called header2.php and a separate sidebar file called sidebar2.php. The header has a different navigation code for active tabs and the sidebar has less elements in it since single posts will not be as long as index pages.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try the just using <?php get_header();?> in place of <?php include (TEMPLATEPATH . '/header2.php'); ?> and see if that works first.

  3. mortega
    Posted 5 years ago #

    Nope, that doesn't change anything.

    Previously I didn't have the comments.php file being called, but I threw it in there anyway just to try it out, to see if the shows up once, or repeats each time and it doesn't show up at all. I don't know what that is indicative of, but found it interesting.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Site url?

  5. mortega
    Posted 5 years ago #

    Sent the URL to the contact on your website.

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    I think that this might be some sort of permalink/rewite problem. It's impossible to generate a 404 on the site and even entering raw, ugly, permalinks results in what looks very like your blog listing.

    For example, http://domain.org/?p=4 is rewritten to http://domain.org/privacy/. Yet it's displaying the Blog listing again.

  7. mortega
    Posted 5 years ago #

    I've tried changing the permalink structure, saving, etc. and haven't noticed a difference.

    I've never used (let alone know anything about) any of this before:

    Pretty permalinks are available under

    * Apache web server with the mod_rewrite module
    * Microsoft IIS 7+ web server with the URL Rewrite 1.1+ module and PHP 5 running as FastCGI
    * possibly Microsoft IIS 6+ using a 404 handler or Mod-Rewrite Pro
    * Lighttpd using a 404 handler or mod_rewrite or mod_magnet (see External sources)

    What would you suggest?

  8. esmi
    Forum Moderator
    Posted 5 years ago #

    IIS? That's well out of my comfort zone but the following pages might help you:


    If you're still stuck, try re-posting but put something like "Rewrite problem under IIS?" in the topic subject. You might attract some users with practical IIS experience.

    Sorry I couldn't help more.

Topic Closed

This topic has been closed to new replies.

About this Topic