This can be done with bp_parse_args()
. See the Using bp_parse_args() to filter BuddyPress template loops article for a tutorial.
Thanks for the link, but I’m not a WordPress or Buddypress coder, so it’s all a bit beyond me to be honest…
I think it’s pretty straightforward. Try this:
function my_bp_members_loop( $retval ) {
$retval['exclude'] = 1; // This needs to be the ID of your admin user.
return $retval;
}
add_filter( 'bp_after_has_members_parse_args', 'my_bp_members_loop' );
For you maybe – I’m treading water (just) in the deep end.
Thanks for the code – I’ll give it a go.