Hi - Matthew Woodard posted this solution to sort portfolio items.
Can anybody explain how/where i implement this code. And does the effect of it mean that the portfolio items is sortable on the actual site, not only in the WP backend ?
--------------------------------
function loop_portfolio_query( $location )
{
if ( $location == 'loop-portfolio' )
{
global $avia_config;
if(isset($avia_config['new_query'])) {
$avia_config['new_query']['orderby'] = "title";
$avia_config['new_query']['order'] = "ASC";
query_posts($avia_config['new_query']);
}
}
}
add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );
----------------------------------------
Secondary - is there anyway randomize the portfolio items shown in frontpage ?
sorenzen.com
Best regards
Stewart ;)














