5 years, 2 months ago
Is there a way to hide the admin from the members page?
You mean you don’t want the Admin to be included in the list of members in members directory?
Exactly. How can I do it? I googled it and I could find any.
You may want to try this code
hope that helps.
4 years, 7 months ago
Brajesh I am looking to do the same thing, where do you place that code? I tried members loop but no luck
You would normally add the code in your theme’s functions.php file
3 years, 10 months ago
Hi, i put the code in my theme funktions.php but superadmin is still visible in memberslist.
//list of users to exclude
$excluded_user=’1′;//comma separated ids of users whom you want to exclude
if($object!=’members’)//hide for members only
//check if we are searching for friends list etc?, do not exclude in this case
Iam using WP: 3.5.1 and BP: 1.7.2 with the buddyboss-theme.
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service