• Resolved justbishop

    (@justbishop)


    Anyone know why this would still be showing posts from cat ID 1 on my search results page? I also tried it w/o the single quotes around the -1

    <?php 
    
                    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                                    $term = get_term_by('slug','blog', 'post_tag');
    				$term2 = get_term_by('slug','gallery', 'post_tag');
    				$args=array(
      					'tag__not_in' => array($term->term_id, $term2->term_id),
                                            'category' => '-1',
      					'post_type' => 'post',
      					'post_status' => 'publish',
      					'caller_get_posts'=> 1,
      					'paged' => $paged
    				);
    
                    query_posts($args);
    
                    if (have_posts()) : ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Excluding Category Not Working?’ is closed to new replies.