Last active
October 3, 2017 12:14
-
-
Save mgibbs189/4cb7b408fa09ec1b00cd to your computer and use it in GitHub Desktop.
FacetWP - remove 200 post limit from SearchWP 2.6+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_swp_query_args', function( $args ) { | |
if ( isset( $args['facetwp'] ) ) { | |
$args['posts_per_page'] = -1; | |
} | |
return $args; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment