Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

UC People Bug Fixes

  • Loading branch information
jmr06005 committed Dec 11, 2015
1 parent 5d88867 commit bb0173455916ab266465a63aa06f8016bce60aae
Showing with 9 additions and 3 deletions.
  1. +2 −2 inc/people-grid.php
  2. +7 −1 user-people.php
@@ -61,10 +61,10 @@
};
if (in_array('file', $information_to_display)) {
$file = get_field('file');
$urlLength = strlen($file);
$urlLength = strlen($file['url']);
if ($urlLength > 0){
echo '<p class="person-file">';
echo '<a href="'.$file[url].'">'.$file[title].'</a>';
echo '<a href="'.$file['url'].'">'.$file['title'].'</a>';
echo '</p>';
}
};
@@ -135,7 +135,13 @@ function sort_group_by_order( $a, $b ){
}
};
}

if(!empty($specific_groups) && is_array($specific_groups)){
$groups_in_use = array();
foreach($specific_groups as $group){
$group = get_term_by('id', $group, 'group');
$groups_in_use[] = $group->slug;
}
}
// sort the groups in use alphabetically
//sort($groups_in_use);
usort($groups_in_use, 'sort_group_by_order' );

0 comments on commit bb01734

Please sign in to comment.
You can’t perform that action at this time.