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

    Hello,

    I just purchased this awesome theme and am happy with the progress of my site but can’t figure out how to change the order of the portfolio categories. It seems the categories are displayed in alphabetical order but I want to display them otherwise. How can I change that?

    Thanks

    #96133

    Hi,

    Open includes > loop-portfolio.php and find this code

    //get the categories for each post and create a string that serves as classes so the javascript can sort by those classes
    $sort_classes = "";
    $item_categories = get_the_terms( $the_id, 'portfolio_entries' );

    if(is_object($item_categories) || is_array($item_categories))
    {
    foreach ($item_categories as $cat)
    {
    $sort_classes .= $cat->slug.'_sort ';
    }
    }

    That is the code for the portfolio sortable categories. The default order is alphabetical. Not sure if you can sort it though. Let me tag the rest of the support team.

    Regards,

    Ismael

    #96134

    Hi,

    It would be easier to use http://wordpress.org/extend/plugins/taxonomy-terms-order/ to sort the taxonomy categories .

    Thanks,

    Nick

    #96135

    Bingo Nick and Ismael, your plug-in suggestion http://wordpress.org/extend/plugins/taxonomy-terms-order/ works perfect for customizing the order of the categories.

    Thanks,

    Jordan

    #96136

    Hey,

    Glad Nick could help you. :)

    Regards,

    Ismael

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

The topic ‘Organizing The Order of Portfolio Categories’ is closed to new replies.