I want the order in the portfolio page to be in alphabetical order, how do I do that?
Thanks in advance…
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' );
}
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
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