[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 Oct 25 15:05:57 UTC 2010
#14625: Function get_the_category doesn't work as expected with custom post types
-------------------------------+--------------------------------------------
Reporter: bjdj | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: General | Version: 3.0.1
Severity: minor | Resolution:
Keywords: reporter-feedback |
-------------------------------+--------------------------------------------
Comment(by mfields):
I did a bit of testing with this and WordPress appears to be working as
intended AFAIK. Here's what I did on 3.0.1 using TwentyTen:
1. Registered post_type 'resource' (init, 0).
1. Registered 'category' as a taxonomy for object type 'resource' (init,
1).
1. Created a resource and assigned it to category 94.
1. Visited /?cat=94 recieved a 404. No post were displayed.
1. Created a post and assigned it to category 94.
1. Visited /?cat=94 Only the post was displayed - no resource.
1. Assigned the post to all other available categories.
1. Visited /?cat=94 Only the post was displayed - no resource.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14625#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list