If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I have read your article’s on on how to change the default sort order by adding the the templatre_portfolio.php page … $query_string .= “&orderby=title&order=ASC”; – that works fine for when the page loads, by default.
But when I click on either the Date or Name sort buttons my results are always in DESC (descending order).
How to do change this to ASC (acsending order)? And can I make one ascending and the other decsending?
I didn’t test my suggestion but it should work: Open up template_portfolio.php and find following code:
$output .= "<a href='#' id='date_sort' class='active_sort reversed'>".__('Date','avisio')."</a>";
replace it with:
$output .= "<a href='#' id='date_sort' class='active_sort'>".__('Date','avisio')."</a>";
The topic ‘How do I change the portfolio sort order of Date and Name’ is closed to new replies.