[wp-trac] [WordPress Trac] #21945: wp_list_categories feed links unaware of custom type
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 20 19:47:03 UTC 2012
#21945: wp_list_categories feed links unaware of custom type
--------------------------+------------------------------
Reporter: belg4mit | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.4.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nacin):
?post_type=foo should not be necessary in this case. If you are viewing a
taxonomy query, it should automatically pick up all post types assigned to
that taxonomy.
For tags and categories, I think this might be different, for backwards
compatibility reasons. But your solution should probably be to set
post_type on pre_get_posts to the valid post types for that taxonomy when
is_category or is_tag.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21945#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list