Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,988
- How-to & Troubleshooting
- 129,347
- Creating & Extending
- 25,784
- Requests & Feedback
- 9,480
- Third Party Plugins
- 9,784
- Showcase
- 3,317
- Ideas
- 1,400
- Miscellaneous
- 9,167
-
I forgot to check for just members/groups so here’s the corrected version…
`
function sort_alpha_by_default( $qs ) {
global $bp;
if (!$qs && ( $bp->current_component == BP_GROUPS_SLUG || $bp->current_component == BP_MEMBERS_SLUG ) )
$qs = ‘type=alphabetical&action=alphabetical’;
return $qs;
}
add_filter( ‘bp_dtheme_ajax_querystring’, ‘sort_alpha_by_default’ );
`
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS