Forums

[resolved] Show all posts in any given category (4 posts)

  1. mjbouch
    Member
    Posted 5 years ago #

    When I click on a category in the sidebar, wp will only show a portion of the posts I've made in that category. There doesn't seem to be any rhyme or reason to the number it will show but currently no more than 8. Any help would be much appreciated.

  2. mjbouch
    Member
    Posted 5 years ago #

    maybe two separate issues but the right column jumps around depending on which category I click on as well.

    here's the category template code

    ?php get_header() ?>

    <div class="post">

    <h2><?php echo single_cat_title(); ?></h2>

      <?php $posts = query_posts($query_string . '&nopaging=1'); ?>

      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    • |
      <?php the_title(); ?>
    • <?php endwhile; ?>

    <?php else : ?>
    <?php include (TEMPLATEPATH . '/errormessage.php'); ?>
    <?php endif; ?>

    </div><!-- end .post -->

    <h4>
    <?php posts_nav_link('','','previous page') ?> |
    "><?php _e ('home') ?> |
    <?php posts_nav_link('','next page','') ?>
    </h4>

    <?php get_footer () ?>

  3. acousticdryad
    Member
    Posted 4 years ago #

    I am actually looking for the same thing. I just want to show 10 or so posts on the main page, but on the category links I want to show all posts. Not quite sure how to accomplish this, as the "show this many posts" section in the admin panel seems to control both.

  4. moshu
    Member
    Posted 4 years ago #

    The admin panel controls everything.
    Use the CQS (custom query string) plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic