Change the number of members per page
-
Hi there,
Looking for how to change the number of members displayed in the member loop I ended on this very old topic:
https://buddypress.org/support/topic/change-the-number-of-members-to-be-displayed-per-page/This is obsolete and a better way to do this is now to use a filter in bp-custom.php or the functions.php of your theme as describe in the codex:
So just posting this in an attempt to prevent others to use this old solution.
Especially given that this old way doesn’t work with WP Rocket cache and a logged in user.function my_bp_members_per_page( $retval ) { $retval['per_page'] = 24; return $retval; } add_filter( 'bp_after_has_members_parse_args', 'my_bp_members_per_page' );
Regards,
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.