[wp-trac] [WordPress Trac] #13020: WP_Query - Post type ignored in taxonomy queries.

WordPress Trac wp-trac at lists.automattic.com
Wed May 26 20:16:58 UTC 2010


#13020: WP_Query - Post type ignored in taxonomy queries.
------------------------------------------+---------------------------------
 Reporter:  d910qf                        |        Owner:        
     Type:  defect (bug)                  |       Status:  closed
 Priority:  normal                        |    Milestone:  3.0   
Component:  Post Types                    |      Version:  3.0   
 Severity:  normal                        |   Resolution:  fixed 
 Keywords:  has-patch, taxonomies, query  |  
------------------------------------------+---------------------------------

Comment(by michaelh):

 Replying to [comment:8 anointed]:
 > I've tried every variation I can think of but all seem to return all
 post-types
 >
 > example:
 >
 > {{{
 ...
 > $wpq = array (post_type
 =>'movies','taxonomy'=>'series','term'=>$term->slug);
 ...
 > }}}


 If your taxonomy is 'series' then
 {{{
 $wpq = array (post_type => 'movies', 'series' => $term->slug);
 }}}

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


More information about the wp-trac mailing list