I’m trying to create a search output page with search.php where there is no pagination. I thought the following would work, but what it does is pull up all posts with any query input.
<?php query_posts('posts_per_page=-1'); while (have_posts()) : the_post(); ?>
<?php endwhile; ?>
Anyone know the solution or how a good article to point me to?
- The topic ‘How to remove pagination from search.php template’ is closed to new replies.