[wp-trac] [WordPress Trac] #19471: Automatically support custom post types in category and tag archives

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 7 23:47:25 UTC 2011


#19471: Automatically support custom post types in category and tag archives
--------------------------+------------------------------
 Reporter:  chrisbliss18  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by DrewAPicture):

 I can confirm this problem in 3.2.1. We employed a similar filter to
 accommodate a CPT on archives pages. We also fixed the 'breaking menus
 problem', by adding `nav_menu_item` to the $post_type array, e.g.:

 `
         else
             $post_type = array('post','our_cpt', 'nav_menu_item');
     $query->set('post_type',$post_type);
         return $query;
 `

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


More information about the wp-trac mailing list