How to change order of Portfolio Filtering?

Filter is set on order by 'count' or 'name' and you can change it in /functions/portfolio-filtering.php file by finding this line:

<?php $portfolio_types = get_terms(array('taxonomy' => 'portfolio_types','orderby' => 'count','order' => 'ASC',));

You can change the 'count' or 'name' to your wanted parameter from this list:

  • name
  • slug
  • term_group
  • term_id
  • id
  • description

for ascending or descending order. you can change the 'ASC' (ascending) to 'DESC' (for descending).