Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

How to exclude(remove) the admin profile in the members Directory (5 posts)

Started 11 months ago by: charlesponraj

  • Profile picture of charlesponraj charlesponraj said 11 months ago:

    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

  • Profile picture of Hugo Hugo said 11 months ago:

    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:

    ( 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.

  • Profile picture of charlesponraj charlesponraj said 11 months ago:

    Thanks for the reply
    I tried the code ( bp_has_members( bp_ajax_querystring( ‘members’).’&exclude=1′ ) )
    but its not working
    any other suggestion

  • Profile picture of saule saule said 6 months, 1 week ago:

    @charlesponraj did you get this to work finally? It didn’t work for me too