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

    I want to show the latest 4 out of 16 entries. If I user the “Portfolio Raster” i get only the oldest 4.

    #116337

    Add following code to functions.php if you want to reverse the order of the portfolio query:

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

    DESC stands for descending order, use ASC for an ascending order.

    #116338

    Vielen Dank!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Get the latest portfoilio entries in Content Element "Portfolio Raster"’ is closed to new replies.