WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 2 years ago

#15145 new enhancement

Add a wp_list_users() template tag

Reported by: greenshady Owned by:
Priority: normal Milestone: Future Release
Component: Template Version: 3.1
Severity: normal Keywords:
Cc: scribu, admin@…

Description

Now that get_users() has been implemented (#14572), I propose we add a function called wp_list_users() that handles a basic list of users similar to wp_list_authors(). WordPress has long needed a function for handling this.

The arguments for the function would simply be the same arguments used for get_users(). The wp_list_users() function would basically be a function for outputting the HTML. The function should also have the ability to link to the user's archive page and output a link to the user's RSS feed.

This would make it easy for theme developers and users to be able to create a users list without a lot of PHP work.

An alternate idea might be to push a few more arguments into the wp_list_authors() function, but I don't think that's the best route to go since its primary function is to list users that have written posts.

Change History (3)

comment:1 scribu3 years ago

  • Cc scribu added
  • Component changed from Users to Template

comment:2 Utkarsh3 years ago

  • Cc admin@… added

comment:3 markjaquith2 years ago

  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.