[wp-trac] [WordPress Trac] #21744: WP_User_Query does not support post type

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 31 00:25:09 UTC 2012


#21744: WP_User_Query does not support post type
-------------------------+------------------------------
 Reporter:  AliMH        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  3.4.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by wonderboymusic):

 WP_User_Query is meant to query and/or join wp_users and wp_usermeta,
 neither of which have anything to do with posts, unless you are talking
 about ordering by post_count? Even so, your 'post-type' query arg doesn't
 change the SQL.

 What's your use case? Are you trying to order authors by their post count
 for a particular post_type?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21744#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list