Created
August 13, 2018 14:21
-
-
Save jchristopher/d14c9530020008dfea25bc9299c6af6d to your computer and use it in GitHub Desktop.
Force SearchWP to use the sort order as defined by $wp_query
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 | |
// Force SearchWP to use the sort order as defined by $wp_query | |
add_filter( 'searchwp_force_wpquery_order', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment