Search posts and pages - not by default
The WordPress system is designed to only search posts by default. For most cases, this probably works fine. In my case, it wasn’t enough. Much of my content, mainly my free PHP scripts, is handled through a static page. Using the native WP search did not return those pages in the search results, leaving some visitors unable to find the information they were seeking.
After some Googling, I ran across a plugin from InternetOfficer called Search Pages 2.0. This plugin tells WordPress to search both pages and posts. And, it doesn’t require anything other than uploading the plugin page and activating it in the plugins section of the dashboard.
There are some pages that I do not want returned in the search results. Unfortunately, there is no pretty way to handle this. The Search Pages Forum gives advice, which I’ve used, on the only way to exclude pages from the results. I just have to make a “note to self” to recreate that exclusion code after doing any future upgrades.



