If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

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

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


    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.


    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.