[wp-trac] [WordPress Trac] #14625: Function get_the_category doesn't work as expected with custom post types

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 16 19:39:26 UTC 2010


#14625: Function get_the_category doesn't work as expected with custom post types
-------------------------------+--------------------------------------------
 Reporter:  bjdj               |        Owner:            
     Type:  defect (bug)       |       Status:  closed    
 Priority:  normal             |    Milestone:            
Component:  General            |      Version:  3.0.1     
 Severity:  minor              |   Resolution:  worksforme
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Changes (by scribu):

  * status:  new => closed
  * resolution:  => worksforme
  * milestone:  Awaiting Review =>


Comment:

 I'm assuming you want to get to the X category. In that case you should
 use {{{$wp_query->get_queried_object()}}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14625#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list