So I have several custom post types on my site and would like to have a place on my home page that will show the most recent 6 posts from 3 different custom post types. I have looked at the setup on How to display recent posts added in custom post types but can not figure out how to have it pull from more then 1 post type.
<h2>Recent Posts</h2>
<ul>
<?php
$recent_posts = wp_get_recent_posts(array('post_type'=>'books','stories','movies'));
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
}
?>
</ul>