Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 1.4.1

searchwp_refine_and_results

If SearchWP finds too many results during the first AND logic pass (this threshold is defined by searchwp_max_and_results) it will shift into a more aggressive AND logic pass that applies only to titles (when applicable).

If you would like to prevent SearchWP from refining AND results add the following to your theme’s functions.php:

<?php
add_filter( 'searchwp_refine_and_results', '__return_false' );
view raw gistfile1.php hosted with ❤ by GitHub
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP