• Hi,

    i want to exclude some specific Pages (and may be Posts in the Future) from the Search Function using the PageNavi-Plugin. What i’ve got is excluding Categories:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("s=$s&paged=$paged&cat=-10");
    if(function_exists('wp_pagenavi')) { wp_pagenavi();} ?>

    Why doesn’t this work (assuming the hideaway is an Array with Post-ids)?

    query_posts("s=$s&paged=$paged&cat=-10&exclude=".implode(",",$hideaway));

    Is there any Way to avoid a Custom-Query?

    Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excluding certain Pages form Search’ is closed to new replies.