[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 21:37:13 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: taxonomy,orderby,categories
--------------------------+-------------------------------------------------
{{{
$args = array(
'fields' => 'all',
'orderby' => 'term_order',
'order' => 'DESC'
);
$categories = wp_get_post_categories($post->ID, $args);
}}}
...this will not output the terms of the object ordered by the
"term_order"
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15142>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list