Reply To: Filter members for a Team Page
You’ll need an identifier re team members. A profile field could work.
You don’t say where the Team Page appears.
Unless you are explicitedly using the bp-default theme, always use files from
\buddypress\bp-templates\bp-legacy\buddypress\
in your child theme.
If you have a conditional, you could edit members-loop.php
Something like:
<?php
$is_team_page = true; // something that returns a boolean
if ( $is_team_page )
$include = '&include=1,2,3,4';
else
$include = '';
?>
<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . $include ) ) : ?>
More info:
https://codex.buddypress.org/developer/loops-reference/the-members-loop/