Does anyone have any suggestions on how to limit the search in the WP admin area to just post titles? It's very frustrating to want to pull up a specific page, and get hundreds of results that have that word in the post content.
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
This is possible by altering the search query via the http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php#L2202 A default search query will look like this:
We need to remove the post content search, a regular expression should be enough.
Note that the regular expression has not been thoroughly tested and may have edge cases when other plugins or themes alter hook into here. |
|||
|
|
