﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
13582	Allow filtering via post_type + taxonomy	anointed	scribu	"I have found that 3.0nightly does not allow me to sort via both post_type and taxonomy term, when the tax term is applied to multiple post_types.

I have a custom taxonomy 'series' registered to 2 separate post_types, 'movies and television'.

Working on creating a custom taxonomy page that will return the results for only 'movies' with a tax term of 'series' in my file taxonomy-series.php

Example script:
{{{
$my_query = get_posts( array(
	'numberposts' => 5,
	'post_type' => 'movies',
	'series' => $term->taxonomy
//have also tried in place of series above
'taxonomy' => $term->taxonomy
	) );
if( $my_query ) {
	print '<h2>Resources</h2>';
	foreach( $my_query as $post ) {
		setup_postdata( $post );
		the_title( '', ' - <b>' . $post->post_type . '</b><br />' );
		the_excerpt();
	}
}
}}}

Another example

{{{
<?php
$wpq = array (post_type =>'movies','taxonomy'=>'series';
$query = new WP_Query ($wpq);
while ( have_posts()) : the_post(); ?>

<?php the_title(); ?>
do other stuff

<?php endwhile; ?>
}}}

Basically it seems that no matter what function combination I try, I always get the results returned containing both movies and television for the tax series.

The functions do work, when there is only a single post_type with the taxonomy term. The problems only arise when there is more than one post_type involved.

"	enhancement	closed	normal	3.1	Post Types	3.0	normal	fixed	post_types, taxonomies	kevinB
