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

    By default the portfolio loads the newest posts from right to left. Is there anyway to change it to load from left to right. I want the newest to be in the top left corner.

    #40569

    You can change the order by editing the query string. Open up template_portfolio.php and replace following line:

    $query_string .= "&cat=".$k_option['portfolio']['matrix_slider_port_final'][$post->ID]."&paged=$paged";

    with:

    $query_string .= "&cat=".$k_option['portfolio']['matrix_slider_port_final'][$post->ID]."&paged=$paged&order=ASC";

    #40570

    This changed the order, but unfortunately they are still not listed from newest to oldest. The newest portfolio image is in the bottom left and the oldest in top right.

    I also tried to change it to DSC instead, but it is still sorting right to left as newest is in top right and oldest in bottom left.

    Any other ideas?

    #40571

    Hey,

    The code Dude provided should work, I’ll test it later and get back to you if I find a solution.

    James

    #40572

    Was a solution ever found for this? It would be great to get this working as right now I have to switch each of the publishing dates to get the order I want.

    #40573

    Try to open up template_portfolio.php and replace following line:

    $query_string .= "&cat=".$k_option['portfolio']['matrix_slider_port_final'][$post->ID]."&paged=$paged";

    with:

    $query_string .= "&cat=".$k_option['portfolio']['matrix_slider_port_final'][$post->ID]."&paged=$paged&order=ASC&orderby=date";

    You can replace ASC with DESC – it depends on the order of your entries.

    #40574

    Sorry, still didn’t work. Using the code with the DESC is what I currently have. The problem is that they still align newest to oldest right to left rather than left to right. I want the newest to be in the top left and oldest in the bottom right. Any more ideas?

    #40575

    Mmmm…. then we can’t change the sorting behaviour without a complete query rewrite. WordPress doesn’t offer other order parameters – only ASC and DESC.

    #40576

    Ohhh, that’s too bad. Having the posts align right-left goes against common reading and it is pain to re-order every time….oh well.

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

The topic ‘Portfolio Sorting Question’ is closed to new replies.