Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #9653

    Hey! i would like to sort portfolio CATEGORIES by date, not alphabetical… Is this possible? Thank you!

    #65445

    Hey,

    open up includes/loop-portfolio.php and replace:

    if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }

    with:

    if(isset($avia_config['new_query'])) {
    $avia_config['new_query']['orderby'] = "date";
    query_posts($avia_config['new_query']);
    }

    #65446

    Thanks DUDE, but it doesn´t work. Is ther another way? thanks

    #65447

    that works with item-portfolios not CATEGORIES

    #65448

    Hi!

    I’m not aware of a wordpress function to order the categories – I’m sorry. Maybe you can use plugins like http://wordpress.org/extend/plugins/taxonomy-terms-order/ to order them manually though.

    Best regards,

    Peter

    #65449

    Yes!! that works… Thank you!

    #65450

    is it possible to sort them in reverse order, ie last posted portfolio item to be first ?

    #65451

    Yes sure – try following code instead:

    if(isset($avia_config['new_query'])) {
    $avia_config['new_query']['orderby'] = "date";
    $avia_config['new_query']['order'] = "DESC";
    query_posts($avia_config['new_query']);
    }

    Instead of DESC you can insert ASC if you prefer an ascending order.

    #65452

    works great, thank you Dude! :)

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

The topic ‘sort by date’ is closed to new replies.