showposts breaks my archives – fix?
-
I wanted to show only 1 post on my blog home page, but 10 on my archive/category pages. It was suggested I leave the options set to show 1 post, then add the following to my archive:
<?php query_posts('showposts=10'); ?> <-- added this line <?php while (have_posts()) : the_post(); ?>This initially seemed to work, until I realized I was getting *all* of my posts on every archive (month) and category page. Removing the line fixes it back.
Why does showposts pull *all* posts? In any event, is there another way I can accomplish showing multiple posts on my archive/category pages but still only 1 on the home blog page? I’m not using, nor do I want to use, a static home page.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘showposts breaks my archives – fix?’ is closed to new replies.