[wp-trac] [WordPress Trac] #15142: 'orderby' => 'term_order' not working in wp_get_post_categories
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 17 22:38:17 UTC 2010
#15142: 'orderby' => 'term_order' not working in wp_get_post_categories
--------------------------+-------------------------------------------------
Reporter: johnnypea | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0.1
Severity: normal | Keywords: reporter-feedback
--------------------------+-------------------------------------------------
Changes (by Utkarsh):
* cc: admin@… (added)
* keywords: taxonomy,orderby,categories => reporter-feedback
Comment:
Works fine for me on trunk.
The query generated by WordPress ->
{{{
SELECT t.*, tt.* FROM wp_terms AS t
INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id
INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
tt.term_taxonomy_id
WHERE tt.taxonomy IN ('category') AND tr.object_id IN (1)
ORDER BY tr.term_order DESC
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15142#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list