Change categories in Portfolio

Home Support Super Construction Change categories in Portfolio

This topic contains 6 replies, has 6 voices, and was last updated by  kylejim 3 days, 2 hours ago.

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

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


    Thomas Adams

    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



    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



    Ignore my last post – its sorted!



    It’s work fine for me, you can check on my site



    Log into WordPress administration panel and go to Portfolio section



    Open your WordPress admin dashboard Navigate to the plugin settings page. Find “Sort Projects Option ” option and mark the checkbox

    Best Sewing Machine Under $200

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

You must be logged in to reply to this topic.