Skip Navigation

[Resolved] Is there a way to add a View All function to pagination

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 16 replies, has 3 voices.

Last updated by Shane 7 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#520390

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

As this is an issue I went ahead and escalated the thread so that our 2nd tier supporters can have a look and hopefully provide a solution.

Thanks,
Shane

#524306

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi David,

Add the following to your functions.php file

//Allows users to have pagination limits greater than 50
add_filter( 'wpv_filter_query', 'custom_pagination_limit', 99, 3  );
function custom_pagination_limit( $query_args,$view_settings,$view_id ) {
   
   if ($view_id = 3767) {
          $query_args = array('posts_per_page'=>60);
         if(isset($_GET['wpv_paged'])){
              $query_args = array('posts_per_page'=>60,'paged' => $_GET['wpv_paged']);
        }
   }
   

Changing the view id to your view id. This should allow you to have a greater limit and those limits kept beyond the pagination.

Please let me know if this helps.
Thanks,
Shane

The forum ‘Types Community Support’ is closed to new topics and replies.