Hi,
I´m trying to follow your instruccion (see post http://www.kriesi.at/support/topic/portfolio-sort-order-reverse-chronological) but when i add that code to the bottom of public_html/amateurdigitalphoto/wp-includes/functions.php
`
function loop_portfolio_query( $location )
{
if ( $location == 'loop-portfolio' )
{
global $avia_config;
if(isset($avia_config['new_query'])) {
$avia_config['new_query']['orderby'] = "date";
$avia_config['new_query']['order'] = "DESC";
query_posts($avia_config['new_query']);
}
}
}
add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );
`
I can´t see my web, when i write http://www.amateurdigitalphoto.com google tell me "Error de HTTP 500 (Internal Server Error)"
I try with this variation
`
function loop_portfolio_query( $location )
{
if ( $location == 'loop-portfolio' )
{
global $avia_config;
if(isset($avia_config['new_query'])) {
$avia_config['new_query']['orderby'] = "date";
$avia_config['new_query']['order'] = "DESC";
query_posts($avia_config['new_query']);
}
}
add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );
}
`
When i do that i'm able to see my web but the order of the photos are the same (first older photo and the newest photo at last)
Can you help me with this.
Thanks in advance














