Tagged: alignment, portfolio categories
Hi,
I want to align my portfolio categories according to their importance. How i can align them importance instead of publish date or letter.
Thanks in advance for your assistance.
Best Regards
Mahmut Demir
Hi,
Edit config-templatebuilder > aviashortcodes > portfolio.php, find this code on line 342:
//get all categories that are actually listed on the page
$categories = get_categories(array(
'taxonomy' => $params['taxonomy'],
'hide_empty'=> 0
));
Replace it with:
$categories = get_categories(array(
'taxonomy' => $params['taxonomy'],
'hide_empty' => 0,
'orderby' => 'name',
'order' => 'ASC'
));
You can refer to this link for more order parameters:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
http://codex.wordpress.org/Function_Reference/get_categories
Regards,
Ismael
Thanks a lot Ismael