Title: only showing three posts?
Last modified: August 18, 2016

---

# only showing three posts?

 *  Resolved [JSDavis82](https://wordpress.org/support/users/jsdavis82/)
 * (@jsdavis82)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/)
 * hey, i have my reading settings set to show at the most 10 posts, but only three
   posts appear on my main index page. I would like for at least the five most recent
   posts to appear. I’d love some help in fixing this small annoyance. thanks.
 * Here’s my main index code:
 * `<?php get_header(); ?>
    <div id="handle"><a href="#" onclick="shelffx.toggle();
   return false;"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/vrt.
   gif" alt="View Recent Ten" /></a></div> <div id="shelf"> <div id="inf"> <div 
   class="clr">&nbsp;</div> <div id="com"> <div class="tinfo">Commentors</div> <
   ul> <?php get_tenrecentcomments(); ?> </ul> </div> <div id="ent"> <div class="
   tinfo">Entries</div> <ul> <?php query_posts('showposts=10');?> <?php if (have_posts()):
   while (have_posts()) : the_post(); ?> <li><span class="intr"><?php echo zeroise(
   $post->ID, 3); ?></span><a href="<?php the_permalink() ?>"><?php the_title() ?
   ></a></li> <?php endwhile; endif; ?> </ul> </div> <div class="clr">&nbsp;</div
   > </div> <br /><br /> </div> <div id="subc"> <?php if (have_posts()) : ?>
 *  <?php while (have_posts()) : the_post(); ?>
    <?php static $ctr = 0; if ($ctr
   == "3") { break; } else { ?> <h1><?php edit_post_link('Edit','<span class="edit"
   >','</span>'); ?><span class="id"><?php echo zeroise($post->ID, 3); ?></span>
   <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1> <h2>posted 
   by <?php the_author_posts_link(); ?> on <?php the_time('F jS, Y') ?></h2>
 *  <div class="entry">
    <?php the_content(); ?> </div>
 *  <div class="info"><span class="comm"><?php comments_popup_link('No Comments','
   1 Comment', '% Comments'); ?></span> <strong>| Categorized:</strong> <?php the_category(',')?
   ></div>
    <?php $ctr++; } ?> <?php endwhile; ?> <div class="navigation"> <div 
   class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div> 
   <div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></
   div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center"
   >Sorry, but you are looking for something that isn't here.</p> <?php include (
   TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> </div> <?php get_sidebar();?
   > <?php get_footer(); ?>

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

 *  Thread Starter [JSDavis82](https://wordpress.org/support/users/jsdavis82/)
 * (@jsdavis82)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/#post-497851)
 * i could still use some help with this please…
 *  [n8b](https://wordpress.org/support/users/n8b/)
 * (@n8b)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/#post-497852)
 * You should probably post this in the paste bin 😉
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/#post-497853)
 * `if ($ctr == "3") { break; }`
 * what happened after you removed that?
 *  Thread Starter [JSDavis82](https://wordpress.org/support/users/jsdavis82/)
 * (@jsdavis82)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/#post-497854)
 * sweet, i changed that “3” to “5” and it now lists the five most recent posts…
   which is the number I wanted. thanks handy.

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

The topic ‘only showing three posts?’ is closed to new replies.

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [index](https://wordpress.org/support/topic-tag/index/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [JSDavis82](https://wordpress.org/support/users/jsdavis82/)
 * Last activity: [19 years, 4 months ago](https://wordpress.org/support/topic/only-showing-three-posts/#post-497854)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
