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

searchwp_query_offset

SearchWP handles pagination internally, but if you would like to change the offset used when querying for results, add something like the following to your theme’s functions.php:

<?php
function my_searchwp_query_offset( $offset, $engine, $terms, $paged ) {
// manipulate the offset in any way you'd like
return $offset;
}
add_filter( 'searchwp_query_offset', 'my_searchwp_query_offset', 10, 3 );
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