Opened 10 months ago
Last modified 6 months ago
#21744 new enhancement
WP_User_Query does not support post type
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Users | Version: | 3.4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | scribu |
Description
unfortunately WP_User_Query only support 'post' right now.
i've attached my modified user.php
Attachments (2)
Change History (9)
comment:1
follow-up:
↓ 6
wonderboymusic
— 10 months ago
comment:2
SergeyBiryukov
— 10 months ago
- Keywords reporter-feedback added; has-patch removed
comment:4
ocean90
— 10 months ago
Please take also a look at http://make.wordpress.org/core/handbook/submitting-a-patch/.
johnbillion
— 10 months ago
comment:5
johnbillion
— 10 months ago
AliMH's change in patch format
comment:6
in reply to:
↑ 1
AliMH
— 10 months ago
- Keywords has-patch added
Replying to 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? What's your use case? Are you trying to order authors by their post count for a particular post_type?
sorry'i'm new in add patch to wordpress trac, thanks john for your help.
yea in post_count it's only support 'post' but most of time we need get post_count per post types.
this patch is not a big deal but need by alot of serious developer.
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? What's your use case? Are you trying to order authors by their post count for a particular post_type?