Is it possible to exclude posts in specific categories? I could really use that feature 🙂
Put this within your search form field:
<form…..>
<input type=”hidden” name=”cat” value=”-your default category ID” />
</form>
Your pages are assigned your default category ID so using the minus will remove all pages from your results.
Can you share your exact code for this? I’m having trouble getting this to work. Any help is appreciated. Thanks!