[wp-trac] [WordPress Trac] #21378: get_the_category doesn't work for custom post types with custom taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 25 16:10:19 UTC 2012
#21378: get_the_category doesn't work for custom post types with custom taxonomies
--------------------------+------------------------------
Reporter: tcattitude | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.4.1
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Changes (by ocean90):
* keywords: 2nd-opinion needs-testing => close
Comment:
Since `get_the_category` is only for categories, like the name says, I'm
not sure what you want.
The right way is `get_the_terms( $id, 'categoria' )`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21378#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list