Re: bp_has_site_groups( \'type=most-forum-topics&max=6\') outside the director
SOME HELP PLEASE!!!
I’m very confused.
If I look into the function, I can’t find the parameter ” most-forum-topics “.
There is just active ( default ) | random | newest | popular.
But its working in the directory/forums view.
function bp_has_site_groups( $args = '' ) {
global $site_groups_template;
$defaults = array(
'type' => 'active',
'per_page' => 10,
'max' => false
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
// type: active ( default ) | random | newest | popular
if ( $max ) {
if ( $per_page > $max )
$per_page = $max;
}
$site_groups_template = new BP_Groups_Site_Groups_Template( $type, $per_page, $max );
return apply_filters( 'bp_has_site_groups', $site_groups_template->has_groups(), &$site_groups_template );
}