-
anok
ParticipantI want the order in the portfolio page to be in alphabetical order, how do I do that?
Thanks in advance…Daniel Tara
KeymasterYou 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' ); }
anok
ParticipantHI thanks.. but I’m probably not doing it right!
This line in
Template-portfolio-no-sidepars.phphas 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
Tagged: alphabetical order, portfolio
You must be logged in to reply to this topic.