WordPress.org

Ready to get started?Download WordPress

Forums

Exclude admin from author list (4 posts)

  1. poliquinp
    Member
    Posted 3 years ago #

    Hi,

    I'm trying to show the authors list on my blog and I want to exclude the admin from the list.

    I'm actually using this code for this
    <? wp_list_authors('exclude_admin=1&hide_empty=0');?>

    the 'exclude_admin=1' doesn't seems to work :/

    Source : http://codex.wordpress.org/Template_Tags/wp_list_authors

    Can anyone help me?

    Thx,
    Patrice

  2. Jonas Grumby
    Member
    Posted 3 years ago #

    It looks like exclude_admin only works if the admin's login user name is admin.

    exclude_admin
    (boolean) Exclude the 'admin' (login is admin) account from the list. Valid values:

    1 (true) - default
    0 (false)

  3. poliquinp
    Member
    Posted 3 years ago #

    The strange part is that the Admin's login is admin..

    I will try if I am not connected with the admin user.

  4. Jonas Grumby
    Member
    Posted 3 years ago #

    Well, you are missing a php in there. Try...

    <?php wp_list_authors ('exclude_admin=1&hide_empty=0'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic