Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Popular Features › Members Directory › Sorting by default › Reply To: Sorting by default
Best wishes to you too!!! ?
This post sums up pretty clearly what code you need to add and where:
And for more about the Members query, please also read the following post:
Finally, I would suggest to use the
bp_has_members filter, and NOT THE FUNCTION as it will prevent you from overriding the BuddyPress templates, which can lead to other issues in future updates.
For more, please read also:
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:
I hope it solves your issue.