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/
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.
great thank you!