Change the filter category order in Expression

Please Note: Theme customizations go beyond the scope of our support services and this article is provided solely as a courtesy to our customers. Please take a moment to review the Scope of our Support.

WordPress by default doesn’t provide an order option to the categories. One way to set a custom order to your filter categories of the gallery page would be to order them by their slug. To do this you have to modify line 19 of the includes/gallery-load.php file:

$args=array("hide_empty"=>false, "hierarchical"=>true);

to be like this:

$args=array("hide_empty"=>false, "hierarchical"=>true, 'orderby'=>'slug');

with this modification your categories will be ordered by slug, so by editing their slug you can change the order. One option would be to append a number like this:


Was this useful? 1