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

    Portfolio entries are currently displayed/sorted by date newest first. How can I sort them by name from A to Z?

    Cheers
    Michael

    • This topic was modified 11 years, 1 month ago by Michael Oeser.
    #182715

    Hi Michael!

    You can add this on functions.php:

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

    Remove browser cache then reload the page.

    Cheers!
    Ismael

    #182911

    Awesome, Ismael. Works like a charm.

    Thanx
    Michael

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Sort portfolio entries alphabetically’ is closed to new replies.