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

    Hi there,

    May I ask how to organize the portfolio items to be listed by alphabetical order? I have tried publishing my portfolio items all at the same time, but it still does not appear sorted by name.

    Thanks,

    Sharon

    #89694

    In includes/loop-portfolio.php replace following line:

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

    with

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

    #89695

    further to this question, is custom ordering or preferential ordering possible? i.e.: make certain portfolio items always appear first.

    #89696

    Hi,

    Replace Peter’s code with this

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

    Now open includes > admin > register-portfolio.php and find this code

    'supports' => array('title','thumbnail','excerpt','editor','comments')

    Replace it with this

    'supports' => array('title','thumbnail','excerpt','editor','comments', 'page-attributes')

    A new metabox called Attributes will be added on your portfolio items editor. You can now order your portfolio numerically.

    Regards,

    Ismael

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

The topic ‘How to rearrange portfolio by alphabetical order’ is closed to new replies.