Title: single.php showing all posts
Last modified: August 19, 2016

---

# single.php showing all posts

 *  [hoopsavenue](https://wordpress.org/support/users/hoopsavenue/)
 * (@hoopsavenue)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/)
 * I haven’t modified single.php at all so that can’t be it. could it be that I 
   installed in a directory, then manually moved everything to the root directory?
   I have no clue. Here is the site: [http://www.hoopsavenue.com](http://www.hoopsavenue.com)

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

 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786239)
 * Your single.php is not in your theme’s directory (or is renamed), so your theme
   is using index.php as a last resort. Put single.php back into your theme’s folder,
   or if it is missing, redownload your theme and upload that single.php.
 *  Thread Starter [hoopsavenue](https://wordpress.org/support/users/hoopsavenue/)
 * (@hoopsavenue)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786241)
 * I took out Recent Posts from the left sidebar and it fixed it, but I want to 
   have Recent Posts there! Why would this code I took out screw it up:
 *  <li class=”widget”>
    <h2>Recent Posts</h2>
    -  <?php query_posts(‘showposts=10’); ?>
       <?php if (have_posts()) : while (have_posts()):
      the_post(); ?>
    - <span class=”recent_date”></span>
    -  <?php endwhile; endif; ?>
    - 
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786244)
 * Uh oh, I just noticed that you are using only /%postname%/ as your permalink 
   structure, which can cause problems.
 *  Thread Starter [hoopsavenue](https://wordpress.org/support/users/hoopsavenue/)
 * (@hoopsavenue)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786245)
 * moved recent posts to the right sidebar and it works fine, i don’t know why i
   can’t have it on the left sidebar
 *  Thread Starter [hoopsavenue](https://wordpress.org/support/users/hoopsavenue/)
 * (@hoopsavenue)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786246)
 * i am using that, but the same issue was occuring with the month/year option and
   default option as well. it’s a new site though, would you recommend i use some
   numeric data?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786247)
 * Use this instead to show recent posts:
 * `<?php wp_get_archives('type=postbypost&limit=10'); ?>`
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786248)
 * I’d recommend the **Day and name** permalink option.
 *  Thread Starter [hoopsavenue](https://wordpress.org/support/users/hoopsavenue/)
 * (@hoopsavenue)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786249)
 * nice! it isn’t messing up single.php, but it is listing all posts twice in recent
   posts?
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786253)
 * It shouldn’t be. Is it nested in some sort of loop? All that query_posts and 
   endwhile; endif; stuff should be removed from the that part of the sidebar.
 *  [iridiax](https://wordpress.org/support/users/iridiax/)
 * (@iridiax)
 * [18 years ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786258)
 * I just checked and it looks fine to me. Try refreshing your browser and/or emptying
   your browser cache.
 *  [phantacid](https://wordpress.org/support/users/phantacid/)
 * (@phantacid)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786730)
 * Not sure if anyone still needs to know but I’m pretty sure this will be an issue
   related to using multiple loops. You cant always just reuse the loop without 
   either resetting it or assigning your loop queries to variables first. This should
   help:
 * [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)

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

The topic ‘single.php showing all posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [phantacid](https://wordpress.org/support/users/phantacid/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/singlephp-showing-all-posts/#post-786730)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
