From 0f3d4c05a18e7e396726fe97171c2789667a98dc Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Wed, 28 Mar 2018 09:33:07 -0400 Subject: [PATCH] Update to UC People --- uc-people.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uc-people.php b/uc-people.php index 8203781..9d7c3f4 100644 --- a/uc-people.php +++ b/uc-people.php @@ -220,6 +220,7 @@ function importFile( $filename ){ 'about' => 'About', 'url' => 'Website', 'author' => 'Author', + 'department' => 'Department', ); foreach( $data as $k => $v ){ @@ -245,7 +246,7 @@ function importFile( $filename ){ 'post_author' => ( !empty($v['Author']) ? $v['Author']: get_current_user_id() ), ); $id = wp_insert_post( $args, true ); - wp_set_object_terms( $id, explode(' ', $v['Tags']), 'tag' ); + wp_set_object_terms( $id, explode(',', $v['Tags']), 'persontag' ); set_post_thumbnail( $id, intval($v['Profile Image']) ); foreach ($fields as $l => $w) { if( $l == 'netid' || $l == 'role' || $l == 'author' ){