事实证明,您不能使用术语slug(很明显,可能存在重复的slug-face-palm),您需要使用术语ID。
$term_id = term_exists( \'system\', \'status\' );
$page = array(
\'post_title\' => \'New Job\',
\'post_name\' => \'new-job\',
\'post_content\' => \'\',
\'post_status\' => \'publish\',
\'post_author\' => 1,
\'post_type\' => \'jobs\',
\'tax_input\' => array (
\'status\' => array ( (int)$term_id["term_id"] )
)
);
wp_insert_post( $page );