Sort by site/blog column in Multisite

I tried to solve this issue before. Taking a second look at it, we can alter the sites list using the query filter hook. Supposing our custom sort URL is http://example.com/wp-admin/network/sites.php?orderby=site_category add_action( ‘plugins_loaded’, function() { global $pagenow; if( is_super_admin() && ‘sites.php’ == $pagenow && isset( $_GET[‘orderby’] ) && ‘site_category’ == $_GET[‘orderby’] ) add_filter( ‘query’, ‘b5f_filter_site_query’ … Read more

How to Display BuddyPress Profile Field Data In Multisite Blogs [closed]

After playing around with it a bit more, here’s what finally worked for me: global $bp; $thisblog = $current_blog->blog_id; $user_from_email = get_user_by(’email’, get_blog_option($thisblog, ‘admin_email’)); $user_id = $user_from_email->ID; $myfield = xprofile_get_field_data( ‘Counties Served’, $user_id, $multi_format=”comma” ); $data = xprofile_format_profile_field(‘checkbox’, $myfield); echo $data;