I think I understand what your issue if yes, but still sounds wierd to me lol.
Anyways, you could try add this snippet code into a WPcode PHP snippet and see if it will do the trick for you by setting up default sorting to be by display name.
// Force BuddyPress member directory to always be sorted by display name
function custom_buddypress_member_sorting( $args ) {
// Check if the current page is the members directory
if ( bp_is_members_directory() ) {
// Set the 'orderby' to 'display_name' and 'order' to 'ASC'
$args['orderby'] = 'display_name';
$args['order'] = 'ASC'; // You can change to 'DESC' for descending order
}
return $args;
}
add_filter( 'bp_after_has_members_parse_args', 'custom_buddypress_member_sorting' );
Let me know if that might solve your issue. π
If this doesnβt work for you, it would be nice to get access at least to the site to troubleshoot the issue from there. I don’t have a ton of time to troubleshoot lol, but I would like to give it a try. Hopefully it can be fixed to work as intended so you can move on with something more fun to do than troubleshooting the same issue for days lol.
I could provide you with my “junk-email” which I use for this exact purpose (if needed).
I use Nouveau by the way
Unfortunately it did not work, your code.
Ideally, I would like to keep the dropdown (last active, registrered, alphabetical) the same, just by default that “alphabetical” is selected AND that it sorts on display name.
I have already tried numerous types, but it won’t let me sort by display name, nor will it allow me to change the default selection.
Can you provide me with your junk e-mail and access needs? (like, do you also need admin access or ftp/db access?)
Please note I am already appreciating all your time and effort, I’m not expecting anything and I’m already very happy with the help so far.
Thanks.
And you use the BuddyX theme with BuddyPress and not the BuddyBoss Platform right?
You can send me an email here: support@spiritualskill.com
This reply will be deleted once you reach out, in order to prevent spam mails in the future. π
You’ve got mail! π thanks in advance.
Yes I am using BuddyX PRo (but again, when switching to any standard theme – the issue is the same)
And BuddyPress (not BuddyBoss)
Recieved your mail.. I’ll see what I can do π
I want to mark this topic as resolved.
Just for reference:
The resolution was to enable WordPress vs. Buddypress synchronisation (in the Settings > Buddypress settings).