Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created January 22, 2015 14:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jchristopher/7ef5a9202dd492a0c8ee to your computer and use it in GitHub Desktop.
Change the order of SearchWP results
<?php
function my_searchwp_search_query_order() {
return 'ASC';
}
add_filter( 'searchwp_search_query_order', 'my_searchwp_search_query_order' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment