diff --git a/inc/people-grid.php b/inc/people-grid.php index 72301e9..40278a1 100644 --- a/inc/people-grid.php +++ b/inc/people-grid.php @@ -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 '

'; - echo ''.$file[title].''; + echo ''.$file['title'].''; echo '

'; } }; diff --git a/user-people.php b/user-people.php index f1dd312..14a50f2 100644 --- a/user-people.php +++ b/user-people.php @@ -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' );