Exclude Posts, Pages, or Categories from Search Results
I tend to use pages or categorized posts to fill widgets on home pages, because it provides users with an easy way to change various areas on their home page or sidebars. Sometimes, though, we don’t want that content to show up in searches. Here’s how to exclude them:
Thanks! Worked for us.