Created
September 12, 2013 17:46
-
-
Save ericandrewlewis/6541275 to your computer and use it in GitHub Desktop.
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_action( 'parse_query', 'maybe_parse_query_for_find_posts' ); | |
function maybe_parse_query_for_find_posts( $query ) { | |
if ( empty( $_REQUEST['action'] ) || $_REQUEST['action'] != 'find_posts' ) | |
return; | |
$query->set( 'order', 'something else' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment