@mikelast
Active 6 years, 2 months ago
-
Varun Dubey replied to the topic Showing + Filtering Groups in the forum How-to & Troubleshooting 6 years, 5 months ago
@mikelast
To change the number of groups display at group directory page, you can use the following snippetadd_filter( ‘bp_after_has_groups_parse_args’, ‘wbcom_alter_groups_parse_args’ );
function wbcom_alter_groups_parse_args( $loop ) {
if ( bp_is_groups_directory() ) {
$loop[‘per_page’] = 2;
}
return $loop;
}