• Resolved greencode

    (@greencode)


    Firstly, I know how to change this in the WordPress Settings but what I wanted is to be able to specify an unlimited number of posts to be shown in one particular category – for which I’ve created a special template for. Therefore is there any code that I can add to that template that will specify the amount of posts to show. Any help would be greatly appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter greencode

    (@greencode)

    Actually I’ve figured it out! find this code in your template:

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

    and add this line above it.

    <?php $posts=query_posts($query_string . ‘&posts_per_page=-1’); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Increase amount of posts shown on category page’ is closed to new replies.