Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
I’m sure there is a way to filter the members loop via BuddyPress but if you want a WordPress approach then check out the WP_User_Query class. Assuming that s2member uses custom fields to distinguish members (I may be wrong on that) you’d want to look at using the Custom Field Parameters
Ref: https://codex.wordpress.org/Class_Reference/WP_User_Query