Portfolio alphabetical order

Viewing 4 posts - 1 through 4 (of 4 total)
  • #16428
    anok
    Participant

    I want the order in the portfolio page to be in alphabetical order, how do I do that?
    Thanks in advance…

    #16445
    Daniel Tara
    Keymaster

    You can add this condition inside the pinboard_filter_query() function:

    if( $query->is_cat( pinboard_get_option( 'portfolio_cat' ) ) ) {
    	$query->set( 'orderby', 'title' );
    	$query->set( 'order', 'ASC' );
    }
    #16456
    anok
    Participant

    HI thanks.. but I’m probably not doing it right!
    This line in
    Template-portfolio-no-sidepars.php

    has this line:
    <?php pinboard_category_filter( pinboard_get_option( ‘portfolio_cat’ ) ); ?>

    And I’ve tried all sorts of replacing it with the code you submitted but πŸ™ it’s not working! (Not a php programmer!)

    <?php if( $query->is_cat( pinboard_get_option( ‘portfolio_cat’ ) ) ) {
    $query->set( ‘orderby’, ‘title’ );
    $query->set( ‘order’, ‘ASC’ );
    }; ?>

    Should it be like this or??

    All help appreciated.
    Anna

    #16483
    Mikester
    Participant

    Hey I’m also curious to know the answer to this one, but couldn’t find the ‘pinboard_filter_query()’ function anywhere – where exactly is it located?

    Thanks! Mike

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

You must be logged in to reply to this topic.