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: 2.6


View Parameters »

It takes a bit of extra work to determine the calculated weight of results, so by default they are omitted from display. If however you would like to examine the exact weights of results when viewing your search results and in the debug log, add this to your theme’s functions.php:

// Will append the calculated result weight after the title in the debug log
add_filter( 'searchwp_debug_append_weights_to_titles', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

Note: You can also view the calculated weight of results by viewing the HTML comment block that is output on search results pages when debugging is enabled.


Parameter Type Description
$append Boolean

Defaults to false

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