Tell us what you are trying to do? I need to be able to display more than 50 posts at a time, but less than unlimited. I would like to be able to display 100 or 200 or some number of posts in my view. Is there code that I can put in the View to do that or a hook/filter to change the limit or selection box?
Is there any documentation that you are following? No
Hello. Thank you for contacting the Toolset support.
Well - I assume you want to paginate your view. Could you please create the paginated view or enable "Pagination and Sliders Settings" section by clicking on "Screen Options" button at top right of your view's page and set your pagination settings accordingly.
Hi,
This is a map only view, there is no pagination needed.
The problem is that the Limit section dropdown only goes to 50. I need to show more than 50 items, more like 100 or 200 items. Is there a way to do that? Can the Limit dropdown be overridden to make it a larger number?
Yes - Views offer a filter hook using which you can override the view's settings.
You can use view's filter hook wpv_view_settings
For example:
//Modify the limit and/or offset settings of a given View to use a number greater than 50:
add_filter( 'wpv_view_settings', 'func_modify_post_limit', 5, 2 ); // use a low priority number of 5, so this runs early
function func_modify_post_limit( $view_settings, $view_id ) {
if ( $view_id == 9999 ) { // if displaying a View with ID equal to 9999
$view_settings['limit'] = 100; // show 700 posts
}
return $view_settings;
}