Showing ALL posts in archive (no pages)
-
I’m trying to retrieve all posts in an archive page by putting this at the head of date.php:
<?php query_posts($wp->query_vars->matched_query."&posts_per_page=-1"); ?>
However, this is bringing up every single post, not just all those from the matched query. Is posts_per_page the wrong way of doing it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Showing ALL posts in archive (no pages)’ is closed to new replies.