WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a category called "javascript" and it's limiting my list to only 4 entries?

<?php get_header(); ?>

    <div class="container">
      <div class="row">
        <div class="decorate">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

          <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>

          <?php endwhile; ?>

          <?php endif; ?>
          </div><!-- end decorate -->
      </div><!-- end row -->

<?php get_footer(); ?>

The link to this page is:

<li><a href="<?php bloginfo('wpurl'); ?>/category/javascript">Javascript</a></li>
share|improve this question
up vote 2 down vote accepted

This has nothing to do with the loop in the template file.

Check Settings>>Reading>>"Blog pages show at most..."

That setting is the default setting for Archives, too, as well as Search results, etc.

Use WordPress › Custom Post Limits « WordPress Plugins to vary posts limits in categories, archives, etc.

share|improve this answer

Try this:


Add it right before if(have_posts())... and add wp_reset_query(); after the loop ends.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.