How to display recent posts added in several custom post types
You can pass multiple custom post types in an array for ‘post_type’, as in: ‘post_type’ => array(‘books’, ‘stories’, ‘movies’) Your code seems to try to do this, but the syntax is a bit off, it should be: $recent_posts = wp_get_recent_posts( array( ‘post_type’ => array( ‘books’, ‘stories’, ‘movies’ ), ) ); You can find more details … Read more