• Hi

    I have set my post count to show only one post on my blog. As a result, if i click one of my archive categories it also shows one post per page (as expected).

    How can I have the archives show all posts on one page so January would show all the posts from January rather than just one on each page?

Viewing 1 replies (of 1 total)
  • well, instead of changin posts per page through the settings you can change the index to only show one post

    <?php
    query_posts( array(
          'posts_per_page' => 1,
          'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
     ));
    ?>

    Adding this before the start of your loop on index.php would only load 1 post

    But you could then set your posts per page in settings back to 10 or whatever so all your archive pages show more posts

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying all posts from archives’ is closed to new replies.