WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.