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

Integrate SearchWP and WooThemes’ Sensei LMS

Sensei is a powerful learning management system from WooThemes. Woo has a neat approach that utilizes custom post type archive pages to display search results. SearchWP doesn’t automatically take over these searches since it’s technically an archive page, but you can tell it to do just that by adding the following to your theme’s functions.php:

// SearchWP/Sensei compat
function searchwp_sensei_compat() {
if ( is_post_type_archive() && is_search() ) {
add_filter( 'searchwp_outside_main_query', '__return_true' );
add_action( 'parse_query', 'searchwp_sensei_compat' );
view raw functions.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