Remove some pages from search
In WP_Query() there is a ‘post__not_in’ argument where you can exclude specific post ID’s. You would create a new WP_Query inside of your search.php and use the current $query_args, then add on your ‘post__not_in’. If you wanted to make it more dynamic, you could also build in some post meta where you could do a … Read more