Categories
PHP WordPress

Display different number of posts per page in the archives

Add following code to your functions.php.

$query->set( 'posts_per_page', -1 ); shows all posts.

Above example does not work in Page requests, use query_posts() instead.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.