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

    Hello –

    I have read your article’s on on how to change the default sort order by adding the the templatre_portfolio.php page … $query_string .= “&orderby=title&order=ASC”; – that works fine for when the page loads, by default.

    But when I click on either the Date or Name sort buttons my results are always in DESC (descending order).

    How to do change this to ASC (acsending order)? And can I make one ascending and the other decsending?

    Thanks.

    #37960

    Hey,

    I didn’t test my suggestion but it should work: Open up template_portfolio.php and find following code:

    $output .= "<a href='#' id='date_sort' class='active_sort reversed'>".__('Date','avisio')."</a>";

    replace it with:

    $output .= "<a href='#' id='date_sort' class='active_sort'>".__('Date','avisio')."</a>";

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

The topic ‘How do I change the portfolio sort order of Date and Name’ is closed to new replies.