Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Sort Groups Alphabetically by default (BP 1.2)


Pisanojm
Participant

@pisanojm

Important to note if you want to use @boonebgorges code with “GROUPS” and not “MEMBERS” sorting -you will have to change to the GROUPS slug… use this:

`function groups_alpha_by_default( $query_string ) {
global $bp;

if ( $bp->current_component == BP_GROUPS_SLUG && !$bp->current_action)
$query_string = ‘type=alphabetical&action=alphabetical’;

return $query_string;
}
add_filter( ‘bp_dtheme_ajax_querystring’, ‘groups_alpha_by_default’ );`

Skip to toolbar