Created
October 26, 2012 19:27
-
-
Save mjangda/3960911 to your computer and use it in GitHub Desktop.
Disables WordPress relevancy search and defaults order to chronological
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( 'posts_search_orderby', function( $search_orderby, $query ) { | |
return ''; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment