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

    Hello there,

    Great theme! Everything is working out well. I was wondering if there was a way to sort portfolio items in alphabetical order?

    My link is http://jmannion.com/?portfolio=refrigerated-foods. This page contains all the portfolio items for refrigerated foods. Is there a way to display these items alphabetically. Also, some of these items will be displayed on other categories in which I will need to do the same. I noticed in the template builder, theres a way to sort the items but not alphabetically. Thanks in advance.

    #52824

    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'] = "title";
    query_posts($avia_config['new_query']);
    }

    #52825

    Thanks Dude,

    It worked but but the format is Z-A, not A-Z. Is there a way to modify it? Thanks!

    #52826

    Yes of course – use following code instead:

    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']);
    }

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

The topic ‘Alphabetical Portfolio Order’ is closed to new replies.