You can filter the members loop in BuddyPress by meta values for the members. So you would need to change the loop in the template file members/members-loop.php to be:
<?php
// Getting current blog_id
global $wpdb, $current_blog;
$id = $current_blog->blog_id;
// Setting variable for current blog_prefix
$blog_prefix = $wpdb->get_blog_prefix( $id );
// Start the BuddyPress Ajax Members Loop
if ( bp_has_members( bp_ajax_querystring( 'members' ).'&meta_key='.$blog_prefix.'capabilities' ) ) : ?>
Related Posts:
- Can i merge 2 new WP_Query($variable) ‘s?
- Querying posts from multiple sites in a network?
- How to Control user registrations directly on sub-sites
- How to hide admin account in BuddyPress? (for security reasons)
- How do I query all posts of one type across my multisite installation?
- What methods should be used to fend off splogs in a multiuser install? [closed]
- find a random blogid across my multisite network that has at least one post published
- Change management solution for BP-based site?
- BuddyPress on Multisite [closed]
- Multisite Installation: how do I setup global search?
- Creating a better multi-site search experience
- Has anyone seen a ‘visual anatomy’ type graphic of the Buddypress plugin?
- Global searchin multisite but only with one subsite
- Make WordPress Search for Both Main Domain and Subdomain
- Multi Site Search Pagination is Broken
- Buddypress on Multisite – Member List
- Is it possible to install BuddyPress with blogs installed on several servers? [closed]
- How can I use WP_Site_Query to find a blog by blog name?
- How to Display BuddyPress Profile Field Data In Multisite Blogs [closed]
- Switch to blog and get content from that blog
- Simplest way to query with blog_id?
- how to list all subdomain in wordpress multiuser
- How to delete users from a WordPress MultiSite that stay in the DB?
- User registration is currently not allowed
- How to unindex a single blog in Multisite?
- Show buddypress profile fields in a multsite blog [closed]
- Fastest way to fetch posts across a multisite
- Search returns “Nothing Found” on a sub directory
- Add external url to WooCommerce My Account navigation
- What dictates whether a plugin will be available to a site in a multisite install?
- Is there a full explanation on how to share a database with two WordPress sites on same server?
- What are options are there to implement a multi language site
- WordPress Multisite Multiple child theme
- Create multiple subdomains for multi-site from a database
- How to map a specific multi-site blog to a folder?
- Built to scale, or worry later?
- Multisite Subdomains result in 403 Forbidden
- Set subdomains live in a next step
- ID’s being stripped out of editor for Admin user in Multi-Site
- How to create a WP_Query to search the Title or Tag?
- How to Structure WordPress for an Organization and its Departments?
- (How) Can I change my Multisite Network to use a different blog as Primary?
- Multisite non www domain gives registration error but should redirect to www.domain.com
- How to get post from all Blog Multisite to the Main Site?
- WordPress multisite htaccess
- get_current_site() not returning site name
- Add custom user fields in Multisite USERS page
- WordPress multisite with multiple parent domains
- WP 4.4 – domain mapping for sites within a multisite network?
- Can I use two different domain names with a WordPress multisite network?
- How to disable the default WordPress redirect to non-www URLs?
- Bulk theme settings in wordpress multisite
- Should I use a multisite installation to achieve a multi-language site?
- Multisite domain naming
- Switch a single site to a multi-site
- migrate a MU sub blog to a single install
- Preferred method of setting user role only works on Main Site in Network
- Display filtered results into custom page
- Register submenu on network menu from the subsite
- new multisite, old db
- Multisite sub-directories IIS 7.5 change media/uploads location
- One Domain, Two Installs of WordPress
- add_rewrite_rule not working in WordPress Multisite
- Create a page for a theme only
- How do I find where the current value of the option ‘registration’ in the SQL database?
- Can’t access Dashboard of a Multisite WordPress. Chrome results in “ERR_TOO_MANY_REDIRECTS”
- How do I get the site url from a Block (within the block editor)
- Strange multisite issue where all sites return same id with get_current_site()
- Creating a subdomain network in a subdomain
- Multisite – One Site with multiple URLs
- Sub-sub folders of WordPress Multisite subdirectory
- Delete all user’s meta without knowing all the ‘key’
- Allow editors to switch sites (Multisite)
- moving tables between multisite installs
- Query by key or author
- Best Practise: Linking to WPMU sites from other sites
- Stylesheet and JS linking error in WP multisite nested path
- Search.php gets metadata from first post
- Can I run multiple blogs from my local machine
- Trouble with SQL SELECT inside switch_to_blog()
- WordPress Multisite and how to apply sef urls only to specific sites
- Custom css – WordPress Multisite
- Migrating from domain mapping plugin to native domain mapping
- “Multisite support is not enabled.” After Multisite Config Changes
- String translation within WordPress multisite with i18n not working on all sites
- Add new sites on the same level as the parent URL in a multisite
- getting posts by tags
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- WordPress automatic Login on other page?
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- Changed singlesite to multisite, but new site shows Maintenance
- Multisite Demo Data for New Site
- Responsive Wordress Site – Serve different post types to each device
- How to apply specific plugins to affect all sites (Multisite Network)
- Is there a way to have wordpress 301 versus 302 urls by default?
- first load of the page gives 404 error
- Some Subdomains on a Multisite Install Not Found
- personal_options hook on WordPress multisite
- Multi site root site installed on subdomain, with child sites as subdirectories
- Integrating WordPress for blog and other content pages in a web app