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


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

Available since: 1.3


By default SearchWP returns results ordered by relevance (as defined by you via the keyword weights set in the SearchWP settings) in DESC (descending) order. If you wish to modify the order you can add something like the following to your theme’s functions.php:

function my_searchwp_search_query_order() {
return 'ASC';
add_filter( 'searchwp_search_query_order', 'my_searchwp_search_query_order' );
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