Title: Single.php: single post shows EVERY post
Last modified: August 19, 2016

---

# Single.php: single post shows EVERY post

 *  Resolved [Matt Ortega](https://wordpress.org/support/users/mortega/)
 * (@mortega)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/)
 * 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.
    [http://wordpress.pastebin.ca/1583006](http://wordpress.pastebin.ca/1583006)
 * 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.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227287)
 * Try the just using `<?php get_header();?>` in place of `<?php include (TEMPLATEPATH.'/
   header2.php'); ?>` and see if that works first.
 *  Thread Starter [Matt Ortega](https://wordpress.org/support/users/mortega/)
 * (@mortega)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227292)
 * 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.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227295)
 * Site url?
 *  Thread Starter [Matt Ortega](https://wordpress.org/support/users/mortega/)
 * (@mortega)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227305)
 * Sent the URL to the contact on your website.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227325)
 * 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](http://domain.org/?p=4) is rewritten to
   [http://domain.org/privacy/](http://domain.org/privacy/). Yet it’s displaying
   the Blog listing again.
 *  Thread Starter [Matt Ortega](https://wordpress.org/support/users/mortega/)
 * (@mortega)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227328)
 * 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?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227336)
 * IIS? That’s well out of my comfort zone but the following pages might help you:
 * [http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite](http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite)
   
   [http://www.micronovae.com/ModRewrite/articles/CleanPermalinksWordpress.html](http://www.micronovae.com/ModRewrite/articles/CleanPermalinksWordpress.html)
   [http://sudhaker.com/web-development/wordpress/wordpress-permalinks-lighttpd.html](http://sudhaker.com/web-development/wordpress/wordpress-permalinks-lighttpd.html)
   [http://blog.nix.is/lighttpd-rewrite-rules-for-wordpress](http://blog.nix.is/lighttpd-rewrite-rules-for-wordpress)
 * 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.

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

The topic ‘Single.php: single post shows EVERY post’ is closed to new replies.

## Tags

 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [single](https://wordpress.org/support/topic-tag/single/)
 * [single post](https://wordpress.org/support/topic-tag/single-post/)

 * 7 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/singlephp-3-2/#post-1227336)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
