Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #165529

    Hi,

    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 ….

    #165716

    Hey soulpatty!

    Can you post the link to your website?

    Best regards,
    Yigit

    #165968

    Hi yigit,

    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

    #166437

    Hey!

    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'
    	
    	);

    Best regards,
    Ismael

    #166457

    Hi Ismale,

    Thanks it’s working now, but it was DESC I was looking for, either way it worked ! Thanks

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Regarding the filter category sorting’ is closed to new replies.