Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update to UC People
  • Loading branch information
jmr06005 committed Mar 28, 2018
1 parent 24750e7 commit 0f3d4c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uc-people.php
Expand Up @@ -220,6 +220,7 @@ function importFile( $filename ){
'about' => 'About',
'url' => 'Website',
'author' => 'Author',
'department' => 'Department',
);

foreach( $data as $k => $v ){
Expand All @@ -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' ){
Expand Down

0 comments on commit 0f3d4c0

Please sign in to comment.