Over the past few days I’ve been tweaking my website to update the design. Part of the process included adding a site search box, something I haven’t bothered with before. This is nice, but it also presented a problem because some of my pages are for my eyes only.
So rather than write a custom query to fix this, I went hunting for a plugin, and found a solution in Search Everything. The plugin makes it easy to select the page ID you want to hide, and exclude it, all in under 60 seconds.
Here’s a walkthrough:
- From WordPress’ Plugins > Add New screen, add the phrase ‘search everything’, then click install on the Search Everything link and follow the instructions.
- Activate the plugin, then go to Settings > Search Everything.
- Under ‘Advanced Configuration – Exclusion’, enter the page IDs of the pages you want to exclude from your search results.
- Click ‘Update Options’.
Done. This is a quick and dirty fix if you’re trying to keep people from seeing all the pages on your site, but it works beautifully.
If you’d like to receive more tips like this, sign up for my email newsletter. No spam, just simple WordPress solutions delivered once a month.