diff --git a/inc/people-grid.php b/inc/people-grid.php index 23ce530..6093e50 100644 --- a/inc/people-grid.php +++ b/inc/people-grid.php @@ -2,32 +2,32 @@ $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { ?>
'; - the_field('title'); - echo '
'; + echo '';
+ $titlePieces = explode(";", get_field('title'));
+ foreach( $titlePieces as $t ){
+ echo ( !empty($t) ? "{$t}
": "" );
+ }
+ echo '
'; echo ''.$file[title].''; echo '
'; - } + } }; if (in_array('email', $information_to_display)) { echo ''; @@ -107,18 +110,17 @@ }; ?>
- - IF any values are found to match, dump those out. - - After all possible fields, close the row. - + + IF any values are found to match, dump those out. + + After all possible fields, close the row. + */ - - - - + + + + echo ' | ||
'; the_post_thumbnail(array('65', '65')); @@ -81,7 +81,15 @@ }; echo ' | '; } - createTextCell('title', 'title'); + //createTextCell('title', 'title'); + if (in_array('title', $information_to_display)) { + echo '';
+ $titlePieces = explode(";", get_field('title'));
+ foreach( $titlePieces as $t ){
+ echo ( !empty($t) ? "{$t} ": "" ); + } + echo ' | ';
+ }
createTextCell('about', 'about');
if (in_array('file', $information_to_display)) {
echo ''; @@ -101,18 +109,18 @@ createTextCell('office_location', 'office_location'); createTextCell('office_hours', 'office_hours'); createTextCell('courses', 'courses'); - - + + echo ' |