Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I get Wordpress to ignore "Blog pages show at most" when a user clicks on a "Catagory" or "Tag" link ?


share|improve this question

2 Answers 2

Try this (add to your theme's functions.php):

function my_unlimited_posts_list( $vars ) {
  if ( isset($vars['category_name']) || isset($vars['tag']) )
    $vars['posts_per_page'] = -1;

  return $vars;
add_filter( 'request', 'my_unlimited_posts_list' );
share|improve this answer
Thanks SO MUCH !!!!! – Joe Stagner Mar 8 '11 at 17:21

in your category.php or archive.php (depends on your theme) add this before the loop:

if (is_category() || is_tag()){
    global $query_string;
    query_posts( $query_string . "&posts_per_page=-1" );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.