This plugin lets you provide the user with search suggestions based on the information entered in the search field.
It adds an AJAX call to the search form, returning matches for the current search query from the database.
There is no change of template files necessary as this plugin hooks in the existing WordPress API to unfold its magic.
I will be more than happy to update the plugin with new locales, as soon as I receive them!
Currently available in:
The query args, passed to WP_Query, either as an array or a string.
An array with the default query args and the current search query are passed to the filter.
An array with the result strings as values. An array with the default results and the WP_Query object are passed to the filter.
- Download WP Search Suggest.
- Unzip the folder into the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- The plugin doesn’t work with my theme. What’s wrong?
Make sure your theme’s search input field has an
id="s"and your form tag an
id="searchform", as in TwentyTen and TwentyEleven. It’ll work fine then.
No fiddling with settings required–does exactly what you’d expect straight out of the box. No less, no more.
Contributors & Developers
“WP Search Suggest” is open source software. The following people have contributed to this plugin.Contributors
- Maintenance release.
- Tested for WordPress 4.0
- Fixed a bug with how scripts and styles were enqueued.
- Now goes directly to the post selected.
- Changed license to GPLv2 or later
- Added Czech translation. Props Roman Opet.
- Minor formatting updates.
- Removed compatibility for pre-3.3. installations.
- Updated utility class
- Various minor code changes
- Cut down on filter calls
- Optimized AJAX handling with jQuery 1.7.1
- Tested for WordPress 3.3.1
- Added compatibilty for WordPress 3.3
- Updated FAQ section
- Added filters so users can adjust the search query and displayed results to their needs (see Filter Reference)
- Fixed a bug where titles of unpublished posts were displayed
- Initial Release