[wp-trac] Re: [WordPress Trac] #4335: Intrinsic Category Sorting (by ID) Changed in 2.2

WordPress Trac wp-trac at lists.automattic.com
Fri May 25 23:35:16 GMT 2007


#4335: Intrinsic Category Sorting (by ID) Changed in 2.2
---------------------+------------------------------------------------------
 Reporter:  iacas    |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.2.1    
Component:  General  |      Version:  2.2      
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by ryan):

 {{{
                         $cats = get_the_category($post->ID);
                         $category = $cats[0]->category_nicename;
 }}}

 We need to sort cats by ID before taking setting $category to the first
 cat in the list.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4335#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list