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

    Hi, i need order porfolio but not by date. I need order as I want!! I want by alphabetic order.

    How can i do it?

    Do I need some pluging?

    Thanks!!

    #97676

    I did not say but the theme is Choices

    My website. http://www.tratos.com

    Thanks!!

    #97677

    You can use a plugin like: http://wordpress.org/extend/plugins/post-types-order/ to order your portfolio items. You can also use following php code to sort your items (alph. order) – add it to the bottom of 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'] = "title";
    $avia_config['new_query']['order'] = "ASC";
    query_posts($avia_config['new_query']);
    }
    }
    }
    add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );

    #97678

    Great!! Thank so much!!

    Regards,

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

The topic ‘order porfolio’ is closed to new replies.