If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: sort by date
Is it possible your response?
I looked in the file loop but do not know what to add or change.
Open up functions.php and add following code to the very bottom:
function loop_portfolio_query( $location )
if ( $location == 'loop-portfolio' )
$avia_config['new_query']['orderby'] = "date";
$avia_config['new_query']['order'] = "DESC";
add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );
The topic ‘Default – sort by date portolio items’ is closed to new replies.