[wp-trac] [WordPress Trac] #20040: Setting query in pre_get_posts and custom post types unassigned to any category
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 14 13:02:29 UTC 2012
#20040: Setting query in pre_get_posts and custom post types unassigned to any
category
-------------------------------+------------------------------
Reporter: novakpeter | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: major | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by scribu):
* keywords: => reporter-feedback
Comment:
Since you're using is_category(), this code is depedant on the global
$wp_query instance. Are you sure you didn't mean to use
{{{$query->is_category()}}}?
Also, what exactly do you mean by "this code doesn't work for them"?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20040#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list