• Resolved JSDavis82

    (@jsdavis82)


    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)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘only showing three posts?’ is closed to new replies.