Once it’s running.
Started 11 months ago by: charlesponraj
I am created a directory i dont want to show the admin profile to other members in the directory when they login bp_has_members() in member_loop.php
You can pass parameters to most loops, for bp_has_members() try
'&exclude=1'or whatever user id is relevant so on the default members dir page in members-loop you would do:
'&exclude=1'
( bp_has_members( bp_ajax_querystring( 'members').'&exclude=1' ) )
Excellent piece of information! Could prove to be really useful for me as well to hide administrators.
Thanks for the reply I tried the code ( bp_has_members( bp_ajax_querystring( ‘members’).’&exclude=1′ ) ) but its not working any other suggestion
@charlesponraj did you get this to work finally? It didn’t work for me too
Existing and new plugins/components and themes.
Show off your BuddyPress powered sites.
Problems with getting it running.
Discuss translating BuddyPress
Everything else.
Feature requests; criticism.
Post your add-ons here.
To start connecting please log in first.
Remember Me
Think you've found a bug with the software? Please report it here (use the same login credentials).