I am wondering if it is possible (or something I have done incorrectly) to sort my portfolio with the newest item showing first in all places. As far as I can tell it is putting the oldest post at the end. I believe that would be the standard WordPress approach. Is this a setting or line of code somewhere?
Thanks in advance!
add following code to the bottom of functions.php:
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 );
If this code doesn’t help you try to replace DESC with ASC
The topic ‘Portfolio Sort Order – reverse chronological’ is closed to new replies.