Combine all posts into one places

You will need to setup a new query to get posts from another post_type.
The post_type parameter will accept an array, so you can just do:

$other_posts = new WP_Query([
    'post_type' => [ 'archive', 'recent' ], // or what ever your post_types are.
]);

// Then do your loop...

Check this documentation for more information.
https://developer.wordpress.org/reference/classes/wp_query/#post-type-parameters

error code: 523