Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


  • charlesponraj
    Member

    @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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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′ ) ) `


    angslycke
    Participant

    @angslycke

    Excellent piece of information! Could prove to be really useful for me as well to hide administrators.


    charlesponraj
    Member

    @charlesponraj

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to exclude(remove) the admin profile in the members Directory’ is closed to new replies.
Skip to toolbar