Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #196990

    Hello,

    How could I reverse the order of the portfolio items in the next/previous left/right avia navigation?
    I tried changing the dates but then it also reverses order in the footer menu.
    I tried adding this code, but it also didn’t help:

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

    Thank you,
    Yury

    #196991
    This reply has been marked as private.
    #197002

    Hey!

    I recommend to change the order by changing the date because the prev/next buttons do not allow you to apply a custom order (menu order or order by title, etc.). If you don’t want to change the order of the portfolio items in the footer use: http://wordpress.org/plugins/post-types-order/ to sort the items manually and to “correct” the date order if necessary.

    Regards,
    Peter

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Portfolio navigation reverse order’ is closed to new replies.