If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
How do I order the portfolio be descending, the most recent appearing first in the categories.
Add following code to the button 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 );
Hi, isn’t there a more intuitive way of managing what order the portfolio lists? I guess you’ll loose this fix after an upgrade of the theme?
You could add this function to your child theme functions.php – in this case you won’t loose the fix. In addition updates to functions.php are seldom and you can use ftp to update the other theme files without overwriting functions.php.
The topic ‘Order Portfolio’ is closed to new replies.