I'm trying to do a wp_query that filters 1) my custom post types and 2) the general category "Featured" which can be used by all post types.
Right now wp_query seems to be ignoring my post_type argument, but limits the category_name perfectly. Help?
<?php
$loop = new WP_Query( array(
'showposts' => 5,
'post_type' => array('videos', 'image', 'audio'),
'category_name' => Featured,
)
);
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
</div>
<?php endwhile; ?>