Created
July 24, 2012 15:28
-
-
Save rachelbaker/3170664 to your computer and use it in GitHub Desktop.
BuddyPress Multisite Filtering Members Loop to only show site members
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ) ) : ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment