Support » Plugin: BuddyPress Global Search » Search Page Pagination Breaks Theme

  • Is there a way to modify the pagination for the search page? I need to limit the numbers and remove the Next and Previous buttons.

    For all of my other pages I’ve used the following lines of code to limit the amount of numbers in the pagination.

    'mid_size'  => 2,
     'end_size' => 0,
     'prev_next' => False

    I’ve found the functions.php in the plugins /includes folder but don’t see a way to add the code above. Can you please assist?


Viewing 1 replies (of 1 total)
  • Plugin Support BuddyBoss Support



    Kindly use the following function snippet to override the number of items per page shown on your search result:

    function custom_bboss_global_global_search_per_page( $retval ) {
      $retval['per_page'] = 50;
      return $retval;
    add_filter( 'bboss_global_search_search_page_args', 'custom_bboss_global_global_search_per_page' );

    You can increase the number per page to your liking to avoid the pagination.

    BuddyBoss Support

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.