Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,882
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,183
-
The code I have now is
<?php $excluded_users = implode(',',get_users("role__in=array('administrator','subscriber','customer')&fields=ID")); ?>
<?php if ( bp_group_has_members( bp_ajax_querystring( 'group_members' ) .'&exclude=' .$excluded_users ) ) : ?>
but no user is excluded. Isn’t that code right?