[wp-hackers] how to query all posts from post type and some posts from another post type?
Jackson Whelan
jw at jacksonwhelan.com
Mon May 7 15:39:36 UTC 2012
On 5/7/12 11:16 AM, Steve Taylor wrote:
>> You can use an array for the post_type parameter in WP_Query, ie:
>>
>> $query = new WP_Query( array( 'post_type' => array( 'post', 'fdp-post' )
>> ) );
> The issue then is, how to do a tax_query that for only restricting one
> post type by category. Probably not possible
Apologies, I totally missed that part of the OP's question.
I believe you're right that the tax_query will apply to both post types.
More information about the wp-hackers
mailing list