[wp-trac] [WordPress Trac] #10329: sort_by and count_limit options for wp_list_authors

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 2 02:06:50 UTC 2009


#10329: sort_by and count_limit options for wp_list_authors
-----------------------------+----------------------------------------------
 Reporter:  takaitra         |       Owner:                 
     Type:  feature request  |      Status:  new            
 Priority:  normal           |   Milestone:  Unassigned     
Component:  Template         |     Version:                 
 Severity:  normal           |    Keywords:  wp_list_authors
-----------------------------+----------------------------------------------
 As author of the List Authors widget plugin, there are two options I
 suggest to add to the wp_list_authors template function: sort_by and
 count_limit. Both of these would address frequent feature requests for the
 author list.

 sort_by options:
 name - sorts by author name (or full name if show_fullname=1)
 post_count - sorts by number of author posts in descending order

 count_limit: when passed a positive integer, will limit the list to that
 number of authors.

 I reviewed the function and believe that count_limit would be almost
 trivial to implement via adding a limit to the SELECT statement. The
 post_count sorting is not as trivial but could be done. I would be willing
 to code and submit a patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10329>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list