Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17441

    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)) {

    $avia_config = “date”;

    $avia_config = “DESC”;

    query_posts($avia_config);

    }

    }

    }

    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)) {

    $avia_config = “date”;

    $avia_config = “DESC”;

    query_posts($avia_config);

    }

    }

    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

    #95473

    Flashlight does not support the avia_action_query_check hook. Instead open up flashlight/includes/loop-portfolio.php and replace:

    if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }

    with:

    if(isset($avia_config['new_query'])) {
    $avia_config['new_query']['orderby'] = "date";
    $avia_config['new_query']['order'] = "DESC";
    query_posts($avia_config['new_query']);
    }

    You can replace DESC with ASC if you’d like to change the order.

    #95474

    Thanks Dude

    But with this code I see my albums (portfolio entrys) into “Portfolio” sort by ASC or DESC, but how can I order the images into each portfolio entry to see first the last image added to that Portfolio entry?

    Thanks in advance.

    #95475

    Hi!

    In flashlight/includes/helper-slideshow.php search for following code (there’re several occurences):

    'order' => 'ASC',

    and replace it with:

    'order' => 'DESC',

    Regards,

    Peter

    #95476

    Thanks Dude, It’s work.

    Thanks very much.

    #95477

    Glad that worked for you :)

    Regards,

    Devin

    #95478

    Hi there, i want the portfolio items to sort by de date the item was created (like blog posts also work). How can I achieve this?

    #95479

    Hey!

    The second post in this thread answers your question :)

    Regards,

    Peter

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

The topic ‘PORTFOLIO SORT ORDER – REVERSE CHRONOLOGICAL’ is closed to new replies.