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?