From 856a89b91beaffbfeaa2c749d1cfd14a66110402 Mon Sep 17 00:00:00 2001 From: John Calande Date: Tue, 30 Aug 2016 10:40:02 -0400 Subject: [PATCH] change post_title to post_date for sort order --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ); } }