WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #19471, comment 8


Ignore:
Timestamp:
12/07/2011 11:49:41 PM (6 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19471, comment 8

    v1 v2  
    11I 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.:
    22
    3 `
     3{{{
    44        else
    55            $post_type = array('post','our_cpt', 'nav_menu_item');
    66    $query->set('post_type', $post_type);
    77        return $query;
    8 `
     8}}}