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

WordPress Trac noreply at wordpress.org
Thu Aug 28 15:37:47 UTC 2014


#29418: Taxonomy archive query not incluiding all of its post types.
--------------------------+-----------------------------
 Reporter:  msaggiorato   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I've noticed this in a project i'm working on.

 I did some digging in '''wp-includes/query.php''' file, and found that
 this is the issue.

 In '''3.9.2 files''', in line '''2501''' there's this

 {{{
 foreach ( get_post_types( array( 'exclude_from_search' => false ) ) as $pt
 ) {
 }}}

 Not sure if this is intended or not, maybe yes, but the query var name is
 missleading in this case, which is also excluding the post type from its
 taxonomies archives too.

 In any case, if this is to be fixed, and in fact is not supposed to be
 here, just changing the line for this should work, as we should expect.


 {{{
 foreach ( get_post_types( array() ) as $pt ) {
 }}}

 Hope this helps, thanks.

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


More information about the wp-trac mailing list