If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
How can I change the order of how the Category filters are right now?
I can’t seem to find it in the code.
For example, I have the categories as years, 2005/2006/2007 etc but I want it to appear as 2007 / 2006 / 2005 ….
It’s not up yet, but I haven’t change anything except the category names, but it just sorts as an ascending order when i want it to be descending since it’s gonig to b filtered by years
Edit includes > loop-portfolio.php, find this code:
$args = array( 'taxonomy' => 'portfolio_entries', 'hide_empty'=> 0, 'include' => $includeArray );
Replace it with:
$args = array( 'taxonomy' => 'portfolio_entries', 'hide_empty'=> 0, 'include' => $includeArray, 'orderby' => 'name', 'order' => 'ASC' );
The topic ‘Regarding the filter category sorting’ is closed to new replies.