Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #168455

    I don’t speak english very well… So i’ll tried to be as clear as possible

    I would like to have my portfolio items displayed in an anti chronological way.
    So that the last entry in the wordpress backoffice is displayed first.

    I looked everywhere a way to do this, but I don’t find it…
    I guess I have to modify the source code, but I don’t know where…

    If you can help me, I will be grateful

    Thanx

    #168485

    Hello MissGouby!

    Include this block of code at the end of the functions.php file located in the Eunoia theme folder:

    function loop_portfolio_query( $location ) {
        if ( $location == 'loop-portfolio' ) {
            global $avia_config;
                if(isset($avia_config['new_query'])) {
                    $avia_config['new_query']['order'] = "ASC";
                    query_posts($avia_config['new_query']);
                }
        }
    }
    add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );

    Cheers!
    Josue

    #168669

    Yes it works !!!!

    Thank you so so much Josue !

    :)

    #168962

    Glad we could help, let us know if you have any more questions or issues :)

    Regards,
    
Josue

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

The topic ‘Anti chronological display of portfolio items’ is closed to new replies.