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

    Hi I would like to show all portfolio entries on the one page, at the moment I have my portfolio entries set to the maximum 100 per page with the pagination to the other pages at the bottom, I would like to see all the entries on the one page, how do i do this?

    http://nzchildcaredirectory.co.nz/north-island-childcare-centres/

    #124692

    Add following code to the bottom of functions.php:

    function custom_post_grid_query( $query, $params ) {
    if(is_page('20')) $query['posts_per_page'] = -1;
    return $query;
    }
    add_filter( 'avia_post_grid_query', 'custom_post_grid_query', 10, 2);

    This will load all portfolio entries on the page with the id 20. You can replace 20 with any other id.

    #124693

    great thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Show all portfolio entries rather than the maximum 100’ is closed to new replies.