$post_information = array(
'post_title' => wp_strip_all_tags( $_POST['postTitle'] ),
'post_content' => wp_strip_all_tags( $_POST['postContent'] ),
'post_type' => 'works', // тип записи
'post_status' => 'publish', // нужный статус
);
$post_id = wp_insert_post( $post_information );