I've tried displaying many post types (separated by comma) and it didn't work. Is there a way to achieve this?
$args = array( 'numberposts' => '5', 'post_type' => 'cpt1, cpt2, cptn');
$recent_posts = wp_get_recent_posts( $args );
Thanks for your input.