Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #206086

    Hi!
    I am asking myself if there is a way to change the order of the portfolio entries.
    Thanks for your help.
    Nic

    #206087
    This reply has been marked as private.
    #206089
    This reply has been marked as private.
    #206098
    This reply has been marked as private.
    #206099

    Hi!

    You can use this on functions.php:

    function custom_post_grid_query( $query, $params ) {
    $query['orderby'] = 'date';
    $query['order'] = 'ASC';
    return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    Refer to this link for more order parameters: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

    Regards,
    Ismael

    #206111
    This reply has been marked as private.
    #206121
    This reply has been marked as private.
    #206128

    Hey!

    No, it doesn’t affect the sort by category function. It works on my end. Can you please give us a link to the page? Please add it on wp-content/themes/enfold/ functions.php file.

    Regards,
    Ismael

    #206191
    This reply has been marked as private.
    #206198

    Hi!

    I don’t see any portfolio entries on the link you posted above. If you want to change the portfolio order by id, you can use this:

    function custom_post_grid_query( $query, $params ) {
    $query['orderby'] = 'ID';
    $query['order'] = 'ASC';
    return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    Change the order parameter to either ASC (ascending) or DESC (descending). Remove browser cache then reload the page a few times.

    Best regards,
    Ismael

    #207328

    Hi, a nice free plugin that does the trick with drag n drop is the “simple page ordering” plugin.

    #207432

    Hi!

    I think this plugin http://wordpress.org/plugins/post-types-order/ will help you.

    Regards,
    Peter

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Portfolio Entries – change order’ is closed to new replies.