The default WordPress search is limited because it doesn’t give you results based on the title or content of the post, but by date.
Better Search replaces the default WordPress search engine with a more powerful search engine. Visitors will find more relevant search results of search terms. You can fine tune results by giving the title or the content more weighting.
Better Search supports templates for perfect integration into your blog template. Template for Twenty Eleven theme included in the package.
Additionally, the plugin will track the searches and allow you to present a “search heatmap” of the most popular searches. Support for WordPress widgets will allow you to easily add this heatmap to your theme’s sidebar or footer.
- Automatic: Once activated, Better Search will automatically replace your default WordPress search with more relevant search results
- Relevance: Search results are automatically sorted by relevance. You can also turn off relevancy based searching, in which case, results are sorted by date
- Control the results: Fine tune the results by changing the weighting of post title and post content. Turn on BOOLEAN search to override the default NATURAL LANGUAGE search of mySQL
- Popular searches: Find out what visitors are searching for on your blog. Display a list of popular search terms (daily and overall) on your blog in the form of a heatmap. Widget support for easy integration in your theme
- Customisation: Support for a template file for perfect integration into your blog template. Alternatively, just input your own CSS styles in the Custom Styles tab in the Settings Page. Check the FAQ for more information
- Supports cache plugins: Works with caching plugins like WP-Super-Cache and W3 Total Cache
- Profanity filter: Customise the list of stop words that will automatically be filtered out of search queries
- Translation ready: Better Search is translation ready. If you’re interested in translating Better Search into your own language let me know.
- WordPress 3.1 or above
- Download Better Search.
- Extract the contents of
wp-content/plugins/folder. You should get a folder called
- Activate the Plugin in WP-Admin.
- Goto Settings > Better Search to configure.
- Goto Appearance > Widgets to add the Popular Searches sidebar widgets to your theme
Below are screenshots of the default options available in the Settings screen
Options in WP-Admin - General options
Options in WP-Admin - Search results options
Options in WP-Admin - Heatmap options
Options in WP-Admin - Custom styles
Options in WP-Admin - Reset count and Maintenance
Better Search widget
In order to display the most popular searches, you will need to add
<?php if(function_exists('the_pop_searches')) the_pop_searches(); ?>.
In order to display the most popular searches weekly/daily, you will need to add
<?php if(function_exists('the_pop_searches_daily')) the_pop_searches_daily(); ?>.
Alternatively, use the sidebar widget to display the overall or weekly top searches.
You can customize the output by adding a template file in your themes folder.
Latest version (2.1.0)
- Cache enable/disable option + Clear cache button. Replaces "Delete transients"
- Search form widget. Find it under Appearances > Widgets or in the Customizer
- Heatmap search widget: Display the popular searches heatmap using
- Query filters now work for the LIKE search as well
- New filter to override the censor character (currently a space) e.g. usage at https://gist.github.com/ajaydsouza/f23f35704431485c6922
- Banned terms will now filter the main search query and will no longer display the search term even in seamless mode
- Highlighting now works when the search term has double or single quotes
Read previous entries in the changelog.
Support the Development
Writing and testing plugins takes a good amount of time. If you like the plugin and find it useful and would like to donate something for my work please do click the Paypal Donate button below. The payment is secure. I haven’t filled in any amount. Feel free to donate what you please. Any amount is welcome. Thank you 🙂
All files and their contents are licensed under the GNU General Public License (GPL).
Questions or Bugs
If you have any questions or would like to report any bugs, please see how you can get support.