diff --git a/inc/people-table.php b/inc/people-table.php index d99ffb0..3f7da41 100644 --- a/inc/people-table.php +++ b/inc/people-table.php @@ -118,12 +118,18 @@ if ( $the_query->have_posts() ) { echo ''.get_field('email').''; echo ''; }; - createTextCell('phone', 'phone'); + // If the phone number ('phone') is part of the information being displayed than we should replace any hyphens with the html entity for a non-break hyphen (‑) + if (in_array('phone', $information_to_display)) { + $phoneStrReplace = str_replace('-', '‑', get_field('phone')); + echo '