[wp-trac] [WordPress Trac] #21378: get_the_category doesn't work for custom post types with custom taxonomies

WordPress Trac noreply at wordpress.org
Tue Mar 4 11:39:22 UTC 2014


#21378: get_the_category doesn't work for custom post types with custom taxonomies
-------------------------+-----------------------
 Reporter:  tcattitude   |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:  3.4.1
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------
Changes (by leroy-b):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @ Nacin: "If you want to get the terms for a custom taxonomy for a post,
 don't use get_the_category(). Use get_the_terms(), specifying the taxonomy
 you'd like."

 – I still don´t understand. what is a possible resolution, if what I want
 is exactly the standard 'category' to be listed in a custom post type?
 (this is what seems the concern of tcattitude, after all)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21378#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list