Created
August 27, 2014 18:11
-
-
Save sethrubenstein/24693c3f0ac67ef3d409 to your computer and use it in GitHub Desktop.
Make SearchWP return results by date rather than relevance. Place this in your theme's functions.php file.
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 | |
// This will make the search return results ordered by date rather than relevance. | |
add_filter( 'searchwp_return_orderby_date', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment