Support » Plugin: Custom Recent Posts Widget » exclude category

Viewing 1 replies (of 1 total)
  • p.s. this is how i do it on the entry.php to filter out posts tagged with that category from being shown on the category page.

    <?php
    if (is_category()) {
    // assign the variable as current category
    $categoryvariable = $cat;
    
    // concatenate the query
    $args = 'cat=' . $categoryvariable . ',-162';
    
    // run the query
    query_posts( $args );
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘exclude category’ is closed to new replies.