[wp-trac] [WordPress Trac] #22556: A taxonomy archive query for attachments can't return results

WordPress Trac noreply at wordpress.org
Fri Sep 6 15:09:22 UTC 2013


#22556: A taxonomy archive query for attachments can't return results
-----------------------------+------------------
 Reporter:  ocean90          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.7
Component:  Query            |     Version:  3.5
 Severity:  normal           |  Resolution:
 Keywords:  3.6-early close  |
-----------------------------+------------------
Changes (by wonderboymusic):

 * keywords:  3.6-early => 3.6-early close


Comment:

 I don't think this fix is necessary. I added a unit test in [25278] to
 query attachments with `tax_query` - it requires manual intervention just
 like any other `post_type` with non-default properties. I don't think tax
 archives by default should pull in attachments. If you want them, you can
 hook `pre_get_posts`, but that shouldn't be the default behavior, IMO.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/22556#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list