Opened 12 years ago
Closed 10 years ago
#23261 closed enhancement (fixed)
Add include to orderby options for get_terms()
Reported by: | wpsmith | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Taxonomy | Keywords: | needs-docs |
Focuses: | Cc: |
Description
In light of WordPress 3.5 allowing WP_Query to orderby post__in
(#21776, #13729), it would be awesome to have the same functionality for get_terms()
and the include
argument.
Likewise (#13729), term queries can specify the posts to retrieve by passing an array of term IDs to the include
parameter. There is no built in method for sorting those posts by the order specified.
Attachments (2)
Change History (9)
#1
@
10 years ago
- Keywords needs-refresh needs-unit-tests added; has-patch removed
Patch looks OK at a glance, but needs a refresh, and unit tests for the new sort order.
#4
@
10 years ago
- Keywords needs-unit-tests removed
- Resolution set to fixed
- Status changed from new to closed
r30052 missed this ticket.
This ticket was mentioned in Slack in #core by boonebgorges. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
First pass.