#18616 closed enhancement (wontfix)
WP_Query Order by Taxonomy
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 3.2.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: |
Description
To be able to order by a taxonomy for any post type.
Added:
'orderby' => 'tax'
'tax_name' => 'taxonomy_name'
This way you can sort the post by the Term->name (ASC/DESC) value.
It was something needed in one of my projects and thought the WP community might like it.
Attachments (1)
Change History (4)
justindgivens — 21 months ago
comment:1
justindgivens — 21 months ago
- Keywords needs-testing added
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
comment:3
justindgivens — 21 months ago
Scribu, thanks for the quick turn. Also thanks for those articles.
Note: See
TracTickets for help on using
tickets.

Not going to happen in Core. Here's a thorough explanation from Otto:
http://wordpress.stackexchange.com/questions/14306/using-wp-query-is-it-possible-to-orderby-taxonomy/14309#14309
For anyone else looking for a non-core solution, see here:
http://scribu.net/wordpress/sortable-taxonomy-columns.html