[wp-trac] [WordPress Trac] #13020: WP_Query - Post type ignored in taxonomy queries.
WordPress Trac
wp-trac at lists.automattic.com
Wed May 26 05:51:09 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 anointed):
I've tried every variation I can think of but all seem to return all post-
types
example:
{{{
<?php
$wpq = array (post_type
=>'movies','taxonomy'=>'series','term'=>$term->slug);
$query = new WP_Query ($wpq);
while ( have_posts()) : the_post(); ?>
<?php the_title(); ?>
do other stuff
<?php endwhile; ?>
Unless my function is wrong, I think it still may be broken
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13020#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list