add filter to $attachment_ids to be able to include media for ACF custom fields and "attachment" post_types