How to Exclude Categories from Search in WordPress

How to Exclude Categories from Search in WordPress

Sometimes there are posts and categories that you don’t want people to stumble onto by accident. That’s why we often filter the categories on the home page for example. However, they can still be easily accessed via the search page on WordPress. Here’s how to prevent that from happening so your visitors see only what you want them to see.

Disclosure: We receive a compensation from some of the companies whose products or services are presented on our website.