diff --git a/functions.php b/functions.php index 3180aba..b14cd1e 100644 --- a/functions.php +++ b/functions.php @@ -1,12 +1,12 @@ is_main_query() ) { if ( is_search() ) { - $query->set( 'orderby', 'post_title' ); + $query->set( 'orderby', 'post_date' ); $query->set( 'order', 'ASC' ); } }