Reply To: Search specific pages

Ernest Marcinko
Ernest Marcinko


In that case the $id in the arguments list is actually the search id, so you can change the $args line accordingly:

if ( $id == 1 )
    $args["post_in"] = array(1, 2, 3, 4);

..and basically that’s it, that should do the trick.

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)