I need to add only specific attachments (PDF) to the query along with other CPT. But when I add mime type value to the query any other post type get filtered out.
Here is the query args
$args = [
'post_type' => ['any', 'attachment'],
'post_status' => ['publish', 'inherit'],
'post_mime_type' => ['application/pdf'],
'posts_per_page' => 10
];
How do I get other post types with attachments of specific mime type? (only pdf in this case)