LIMITED OFFER: Save $200 Today! - Get All Themes For $199 -- Learn More

Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Hide admins from memberlist

  • Raphael
    Raphael
    Newbie 43 points
    June 12, 2014 at 10:26 pm

    Hi,

    is there a way to hide admin-profiles (and their usernames) from the memberlist (page with members-template)?

  • zarko
    zarko
    Senior Member 360 points
    June 12, 2014 at 11:37 pm

    hi Raphael,

    You can change this from template file directly, tpl-members.php by changing query parameter. There is even this filter ready, you just need to comment it out, see line 52:

    	'search_columns' => $ff,
    	//'role' => 'Subscriber' 
    );

    change that to:

    	'search_columns' => $ff,
    	'role' => 'Subscriber' 
    );
    This reply was awarded the best answer by the topic poster.
  • Ronald
    Ronald
    Newbie 55 points
    June 12, 2014 at 11:57 pm

    @zarko Thanks working great!

  • Mark Fail
    Mark Fail
    Super Guru 12,885 points
    June 13, 2014 at 1:25 am

    :)

  • Raphael
    Raphael
    Newbie 43 points
    June 17, 2014 at 1:01 pm

    Hi Zarko,

    thanks a lot!!

    I´ve read your response first now, because I forgot to tick email-notifications for this thread 😐

    Raphael

  • Raphael
    Raphael
    Newbie 43 points
    June 21, 2014 at 1:43 pm

    Another question:

    What´s the php code to filter two or more user-roles, e.g. subscriber and author?

    Sorry, I´m not so firm in php :).

    Thanks,

    Raphael

  • Raphael
    Raphael
    Newbie 43 points
    June 23, 2014 at 9:47 am

    Anybody could help?

    Thanks, Raphael

  • Michael
    Michael
    Senior Member 141 points
    September 9, 2014 at 3:06 am

    wow, great solution, was looking for this ! :)

    Thanks Zarko.

Viewing 8 posts - 1 through 8 (of 8 total)