Change categories in Portfolio

Home Support Super Construction Change categories in Portfolio

This topic contains 3 replies, has 3 voices, and was last updated by  mjawebb 2 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8268

    I see how to add categories in the Portfolio page but how do I change the existing ones?

    #12117

    Thomas Adams
    Participant

    Go to Appearance → Editor and click on taxonomy-portfolio-category.php
    Line 4 will show the following
    $terms = get_terms("portfolio-category", "orderby=count&hide_empty=0&parent=0");
    Change count to your desired value. Your choices are:
    ID – the order you created the categories
    name – alphabetical
    Click Update File when done
    Repeat for portfolio.php
    $terms = get_terms(“portfolio-category”, “orderby=name&hide_empty=0&parent=0”);

    If your categories are displaying in the wrong direction, (ie Z to A), add an order parameter. Example

    ‘ASC‘ – ascending order from lowest to highest values (1, 2, 3; a, b, c).
    ‘DESC‘ – descending order from highest to lowest values (3, 2, 1; c, b, a).
    $terms = get_terms("portfolio-category", "orderby=name&order=ASC&hide_empty=0&parent=0");

    My Twitter
    My Linkedin
    My site

    #13124

    mjawebb
    Participant

    Sorry to jump in on an old post, but I have the same question.

    However, I’m having trouble finding ‘taxonomy-portfolio-category.php’ to click on – could you give me some pointers please?

    I’m going to Appearance – Theme Editor

    #13150

    mjawebb
    Participant

    Ignore my last post – its sorted!

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

You must be logged in to reply to this topic.