因为您正在使用\'post__in\' 在\'orderby\' 参数\'order\' 参数将不起作用,但是,您可以简单地反转要传递给的数组\'post__in\':
$args = array(
\'post_type\' => \'etlap\',
\'posts_per_page\' => 5,
\'post__in\' => array_reverse($ids),
\'post_status\' => \'any\',
\'orderby\' => \'post__in\'
);