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

UC People Bug Fixes #133

Merged
merged 1 commit into from Dec 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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