Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #179272

    Is there a way to order the portfolio items shown in a grid? I assumed they would be ordered by date published but that doesn’t seem ot be the case.

    #179292

    Hey timfl!

    Please take a look at Ismael response here:
    https://kriesi.at/support/topic/adjusting-portfolio-grid-order-by-date/

    Regards,
    Josue

    #199776

    Hi I want to do the following with potfolio

    1) Display a select number of the Portfolio on a given page.e.g. four on the home page, ten on another page
    3) Display the Portfolio in a preferred unique order

    Thanks

    #199822

    Hi!

    1.) Create two different pages then insert the Portfolio Grid element. Configure the element for each page, select 4 under Posts Number on the first page and select 10 on the other.

    2.) You can add 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

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Ordering Porfolio Items’ is closed to new replies.