我试图在一篇文章中同时定义两个类别。请告诉我哪里做错了。
\'post_author\' => $user_id,
\'post_status\' => \'pending\',
\'post_category\' => array($_POST[\'cat\'],$_POST[\'joblocation\'])
//\'taxonomy\' => \'jobtype\'
$pid = wp_insert_post( $post_information );
wp_set_post_terms( $pid, $_POST[\'cat\'], \'jobtype\', false );
wp_set_post_terms( $pid, $_POST[\'joblocation\'], \'jobscategory\', false );