[wp-trac] [WordPress Trac] #18703: 'pre_get_posts'-filter without effect when modifying 'tax_query'. Wrong parameters passed to 'parse_tax_query() ??; WP 3.2.1.

WordPress Trac wp-trac at lists.automattic.com
Thu May 31 16:27:53 UTC 2012


#18703: 'pre_get_posts'-filter without effect when modifying 'tax_query'. Wrong
parameters passed to 'parse_tax_query() ??; WP 3.2.1.
-------------------------------+----------------------------------
 Reporter:  xitromedia         |       Owner:  info@…
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.2.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+----------------------------------

Comment (by dpe415):

 Replying to [comment:3 dd32]:
 > Instead, you should remove the 'cat' param, and set the `'category__in'`
 param instead, which doesn't include children by default.

 This solution is fine for categories, but won't work/doesn't apply to
 custom taxonomies.  Being able to modify `include_children` to exclude
 posts from child terms in a main custom taxonomies loop would be very,
 very helpful.

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


More information about the wp-trac mailing list