I'd like to create a custom loop that includes all Post types: Post and Video. Then I'd like to specify to show all posts of the post type Video, but only show posts that are in the category "Videos."
Here's what I'm thinking:
<?php
$args=array(
'post_type'=> array('video', 'post')
if( get_post_type() == 'post' ) {
'category_name' => 'videos'
}
);
$video_post_query = new WP_Query($args);
?>
I know it sounds strange but this is a work around because the custom post types are new and it's going to take time before I'm able to take all the old video posts and put them into the custom post type. Even if I didn't have this issue I still think it would be useful to know how to define a multiple post type loop that specifies different parameters for each post type.