• Hi, I made a search results page. Because I wanted to exclude all posts of category 1 I putted this code in search.php :

    <?php
    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $s = get_query_var('s');
    query_posts("s=$s&cat=-1&paged=$page");
    ?>

    So when I do that, you won’t see post from category 1, but also no pages ( like : about, contact ). Is this a bug, or did I do something wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page category?’ is closed to new replies.