[wp-trac] [WordPress Trac] #29418: Taxonomy archive query not including all of its post types.

WordPress Trac noreply at wordpress.org
Sat Oct 11 18:57:45 UTC 2014


#29418: Taxonomy archive query not including all of its post types.
--------------------------+-----------------------------
 Reporter:  msaggiorato   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  3.9.2
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |     Focuses:
--------------------------+-----------------------------
Changes (by boonebgorges):

 * keywords:   => 2nd-opinion
 * milestone:  Awaiting Review => Future Release


Comment:

 The behavior was introduced in [21855]. See #21290.

 `exclude_from_search` is, as you'd guess, intended to exclude items from
 showing up in search results. However, it's also used in a number of
 places through WP_Query in a more general way to prevent posts from a
 given post type to appear in results, and this is one of those instances.
 The naming convention here is quite poor, and it points toward the need
 for a different parameter. (I would've thought this was what
 'publicly_queryable' was for, but that's not actually used in WP_Query at
 all.)

 In any case, unfortunately I don't think we can pull up all post types
 here as you suggest. I think that'll cause problems for sites that are
 depending on the current behavior. Better would be to introduce a new
 param that inherits its value from 'public' or even from
 'exclude_from_search' and means something like "show in archives".

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29418#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list