Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27324

    On my website ucftestsite4.info the portfolio sorter buttons are in the order of All Stages – launch – Plan – Validation – Inspiration…. I need to switch those to All Stages – Inspiration – Validate – Plan – Launch…. Tho I am looking in loop-portfolio.php i see where its echo’ing out the html but I am unsure of how to change the order of the buttons. I really appreciate any help.

    #133633

    Hi,

    Edit includes > loop-index.php, find this code:

    $args = array(

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

    );

    Add the order parameters. Please refer to this link: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    $args = array(

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

    Regards,

    Ismael

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

The topic ‘Changing order of portfolio categories buttons on home page’ is closed to new replies.