Changes between Version 1 and Version 2 of Ticket #19471, comment 8
- Timestamp:
- 12/07/2011 11:49:41 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19471, comment 8
v1 v2 1 1 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.: 2 2 3 ` 3 {{{ 4 4 else 5 5 $post_type = array('post','our_cpt', 'nav_menu_item'); 6 6 $query->set('post_type', $post_type); 7 7 return $query; 8 ` 8 }}}