If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I’ve created a portfolio page that pulls in galleries created in portfolio pages. I want them to show up with the most recently created portfolio/gallery to be in the first position. I’ve checked other support questions and found this code (below) and pasted it at the end of the functions.php file, but didn’t work. I also changed ASC to DESC. Here’s the page it’s on where India photos should be first: http://withthisring.org/check-us-out/gallery/
function loop_portfolio_query( $location )
if ( $location == ‘loop-portfolio’ )
$avia_config = “date”;
$avia_config = “DESC”;
add_action( ‘avia_action_query_check’ , ‘loop_portfolio_query’, 10, 1 );
Thanks for your help!
The topic ‘Sort Portfolio by Date’ is closed to new replies.