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

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #133 from jmr06005/master
UC People Bug Fixes
  • Loading branch information
jmr06005 committed Dec 11, 2015
2 parents 95b4f56 + bb01734 commit 12fba9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/people-grid.php
Expand Up @@ -61,10 +61,10 @@ if ( $the_query->have_posts() ) { ?>
};
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>';
}
};
Expand Down
8 changes: 7 additions & 1 deletion user-people.php
Expand Up @@ -135,7 +135,13 @@ get_header(); ?>
}
};
}

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' );
Expand Down

0 comments on commit 12fba9c

Please sign in to comment.