Reply To: Sort Members Alphabetically by Default
@manakio2k, Thanks! it worked like a charm for me.
For anyone still having issues, after
<?php do_action( ‘bp_before_members_loop’ ) ?>
Insert
<?php
if ( bp_ajax_querystring( 'members' ) =="") {
$queryString = "type=alphabetical&action=alphabetical&page=1";
} else {
$queryString = bp_ajax_querystring( 'members' );
}
?>
Then replace
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
with
<?php if ( bp_has_members( $queryString) ) : ?>
That’s it. If you want to limit the Ordering options, go into index.php and comment out the options in the dropdown.