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

    Hi all !

    When you make the portfolio searchable, category show up in alphabetic order.

    To sort them I used All/1. Sandys/1.a Southampton/1.b Warwick/1.c Paget/1.d Pembroke/ but that is not very readable.

    Is there a solution to sort portfolio category in a order I choose ?

    Thanks

    Fred

    #90359

    Hi,

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

    $args = array(

    'taxonomy' => 'portfolio_entries',
    'hide_empty'=> 0,
    'include' => $includeArray
    );

    Replace it with

    $args = array(

    'taxonomy' => 'portfolio_entries',
    'hide_empty'=> 0,
    'include' => $includeArray,
    'orderby' => 'name',
    'order' => 'ASC'
    );

    You can visit this site for reference.

    http://codex.wordpress.org/Function_Reference/get_categories

    Regards,

    Ismael

    #90360

    Thanks a lot Ismael for your time, knowledge and advice, it works !

    I just change ‘name’ by ‘id’, deleted all portfolio category and add them in the order i would like them to appears.

    Excelent idea to add the reference link.

    Regards

    Fred

    #90361

    Glad Ismael could help you! Let us know if you have more questions.

    Regards,

    Mya

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

The topic ‘Portfolio category display in alphabetic order, how to change it ?’ is closed to new replies.