Opened 14 years ago
Closed 12 years ago
#23261 closed enhancement (fixed)
Add include to orderby options for get_terms()
| Reported by: | wpsmith | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Taxonomy | Version: | 3.4 |
| Severity: | normal | Keywords: | needs-docs |
| Cc: | Focuses: |
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
@
12 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
@
12 years ago
- Keywords needs-unit-tests removed
- Resolution → fixed
- Status new → closed
r30052 missed this ticket.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First pass.