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

    I can’t figure out how to re-arrange or change the order of the items in my portfolio. I’m using the Flashlight theme and I have just started adding portfolio pages. They are showing up in the order that I add them, where as I would like to either order them alphabetically or in my own custom way. How can I accomplish this?

    Many Thanks,

    Maks

    ps. Love the flashlight theme

    #186408

    Hi makswilde!

    You can add this on 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'] = "ASC";
    query_posts($avia_config['new_query']);
    }
    }
    }
    add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );

    Change the orderby and order parameters: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    You can also try this plugin:

    http://wordpress.org/plugins/post-types-order/

    Cheers!
    Ismael

    #186476

    Perfect, I used the post-types-order plugin, works great, thank you!

    Maks

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

The topic ‘Flashlight Flexible Grid Gallery Portfolio moving’ is closed to new replies.