[wp-trac] [WordPress Trac] #19471: Support use of custom post types in category and tag archives

WordPress Trac noreply at wordpress.org
Tue May 12 20:33:45 UTC 2015


#19471: Support use of custom post types in category and tag archives
--------------------------+-------------------------
 Reporter:  chrisjean     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:  3.0
 Severity:  normal        |  Resolution:  maybelater
 Keywords:  has-patch     |     Focuses:
--------------------------+-------------------------

Comment (by jorbin):

 comment:21 details one such use case of having a custom post type that is
 a part of a default taxonomy where you don't want to have it be a part of
 taxonomy archive pages.  The behavior that developer is expecting is the
 behavior that has been in place for 3+ years.   They aren't expecting a
 change in that behavior.

 I would look at adding a third argument to
 register_taxonomy_for_object_type that takes an array and includes a
 paramater such as "include_object_in_default_taxonomy_archive" that could
 be used to trigger to the default taxonomies that additional objects
 should be included in the archive queries.

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


More information about the wp-trac mailing list