BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Pagination of Members listing problem
Tagged: members, pagination
- This topic has 13 replies, 2 contibutors, and was last updated 9 years, 3 months ago by Alyssa.
Question
May 6, 2015 at 3:54 am #39874@palmdocBeen having this for some time now and thought it was some plugin conflict, probably with the BP Profile search but the author suggested to change theme
https://wordpress.org/support/topic/cannot-list-more-than-20?replies=3#post-6915460I switched to the twenty fifteen theme and the pagination for the Members page is back.
I can only list 20 Members if I go back to Buddyboss.Any clues?
Answers
May 6, 2015 at 8:12 pm #39900May 18, 2015 at 2:10 am #40329@palmdocAny updates @tjchester?
May 18, 2015 at 8:47 am #40337@alyssa-buddyboss
AlyssaParticipant@palmdoc no update yet, sorry. I think it is set to medium priority since not many people use this so I think this might have been pushed to the next release.
June 27, 2015 at 6:09 am #41754@palmdocStill no news? 🙁
It looks like I have to change themes now 🙁June 29, 2015 at 8:30 am #41845June 29, 2015 at 8:43 am #41847@alyssa-buddyboss
AlyssaParticipant@palmdoc I am unable to replicate this issue. The correct way to add pagination is to edit buddypress/members/members-loop.php find this text:
bp_ajax_querystring( 'members' )
replace with this:
bp_ajax_querystring( 'members' ).'&per_page=25'
Is that what you have done?
And copy the file to your child theme.August 1, 2015 at 4:05 pm #43698@palmdocNo the file was not there in the child theme.
Well I have done that but now I list only 25 membersAugust 1, 2015 at 4:18 pm #43701@palmdocWhen I revert to another theme, the member listing is OK
August 1, 2015 at 4:27 pm #43703@palmdocOh I think the problem must be somewhere in the functions.php code
When I copy that to another theme, the pagination problem re-appearsThanks and sorry for the trouble
August 1, 2015 at 4:51 pm #43710@palmdocThis was the buggy code in functions.php which was used to filter out some individuals
//exclude user view in online widget who online and recently online function custom_bp_core_get_users($users, $params) { $users_ids_to_hide = array(1912,1922,1937); if (isset($users['users'])) { foreach($users['users'] as $user_idx => $user) { if (in_array($user->ID, $users_ids_to_hide) !== false) { unset($users['users'][$user_idx]); } } $users['users'] = array_values($users['users']); $users['total'] = count($users['users']); } return $users; } add_filter( 'bp_core_get_users', 'custom_bp_core_get_users', 10, 2 );
August 1, 2015 at 6:51 pm #43717August 1, 2015 at 10:05 pm #43731@palmdocYes thanks
August 2, 2015 at 9:07 am #43747@alyssa-buddyboss
AlyssaParticipantGreat! I’ll close this out.
- The question ‘Pagination of Members listing problem’ is closed to new replies.