Show all post types in the same table of posts [duplicate]
Yes of course, if you set the query argument ‘post_type’ to ‘any’, it will retrieve any type except revisions and types with ‘exclude_from_search’ set to true. Example: $all_posts = get_posts( array( ‘post_type’ => ‘any’ ) ); Otherwise, if you don’t want ALL post types, just certain ones: $specific_posts = get_posts( array( ‘post_type’ => array( ‘movies’, … Read more