WordPress.org

Ready to get started?Download WordPress

Forums

restricting users with wp_list_authors? (3 posts)

  1. jemmie19
    Member
    Posted 9 years ago #

    Is there any way I can restrict users from being listed (other than admin)? Eg. I have 10 users at a group blog, all are listed on the sidebar with list_authors() but 2 users leave the site. I don't want to delete their posts but I don't want them to appear on the sidebar - can I exclude them?

    (I'm obviously using 1.5)

  2. Lorelle
    Member
    Posted 9 years ago #

    I did a little research on this and the wp_list_authors() tag and I can't find a way to do this, though it might be possible with the use of some conditional tags. You can read about those in the WordPress Codex at http://codex.wordpress.org/Conditional_Tags to see if there is something there you can use. There are some conditional author tags, but I don't see how they will work in this case, but who knows.

    Honestly, unless you really hate them, if you want their work to still be accessed, does it really matter that it shows up? You can also change their author names to a common name like "Others" and hard code their names in the article itself so it doesn't appear on the author list.

  3. jemmie19
    Member
    Posted 9 years ago #

    I don't hate them, no, lol.. the reason behind it was more because I'm a perfectionist, and trimming down the sidebar makes the site appear tidier.

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic