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

Hide admins from memberlist

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

Created: June 12, 2014 at 10:26 pm

  • zarko
    zarko
    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' 
    );
  • Ronald
    Ronald
    June 12, 2014 at 11:57 pm

    @zarko Thanks working great!

  • Mark Fail
    Mark Fail
    June 13, 2014 at 1:25 am

    🙂

  • Raphael
    Raphael
    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
    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
    June 23, 2014 at 9:47 am

    Anybody could help?

    Thanks, Raphael

  • Michael
    Michael
    September 9, 2014 at 3:06 am

    wow, great solution, was looking for this ! 🙂

    Thanks Zarko.

Copyright © 2010-2020 PremiumPress Limited.

secure payments