I have a search field that's searching in my custom post type bwps
with a hidden input:
<form class="search-form form-inline" action="<?php echo site_url('/'); ?>" method="get" role="search">
<label class="sr-only"></label>
<input class="searchInput" type="search" required="" placeholder="<?php _e('Search for event', 'mhe') ?>" name="s" value=""></input>
<input type="hidden" name="post_type" value="bwps" />
<button class="searchButton" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span> <span class="searchButtonText"><?php _e('Search', 'mhe') ?></span></button>
</form>
However, the customer now also wants that it searches within all pages, but only pages with a specific category.
How can I make this search form search EVERYTHING
in the custom post type, but also ONLY
pages with a specific category? Is this even possible?