Introduction
The Members directory in BuddyBoss includes an Alphabetical sorting option by default, and there is no built-in setting to remove it. You can hide this option by adding a small custom function to your active theme. This guide explains how you can remove the “Alphabetical” sort option from the Members directory filter.
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- In your WordPress admin dashboard, go to Appearance > Theme Editor.
- Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
- From the Theme Files list, click Theme Functions (functions.php).
- Paste the following code just before the closing PHP tag (?>):
add_filter( 'bp_nouveau_get_members_filters', 'bb_remove_atoz_memebers_sort', 10, 2 );
function bb_remove_atoz_memebers_sort( $filters, $context ) {
unset( $filters['alphabetical'] );
return $filters;
}- Click Update File to save your changes.
Troubleshooting and FAQs
Q: The Alphabetical option is still visible, what should I check?
A: Make sure the code is added to the active theme’s functions.php and clear any caches.
Q: Will this affect other sorting options?
A: No, only the Alphabetical option is removed.
Q: Does this affect other directories?
A: No, this change only applies to the Members directory filter.
Q: Can I revert this change easily?
A: Yes, remove the code from functions.php and save.
Q: Who can I contact for further assistance?
A: Check the BuddyBoss Support Policy or consult a developer.