diff --git a/uc-people-widget.php b/uc-people-widget.php index c0a0a84..cea7cad 100644 --- a/uc-people-widget.php +++ b/uc-people-widget.php @@ -196,6 +196,10 @@ Class UC_People_Widget extends WP_Widget { $out .= ''; } else if( $f == 'mailing_address' && in_array('mailing_address', $information_to_display) ){ $out .= ''.str_replace(';','
',get_field($f, $id )).''; + // If the value($f) is a phone number than we should replace any hyphens with the html entity for a non-break hyphen (‑) + } elseif ($f == 'phone' && in_array('phone', $information_to_display) ) { + $phoneStrReplace = str_replace('-', '‑', get_field('phone', $id )); + $out .= ''.$phoneStrReplace.''; } elseif( $f == 'url' && in_array( 'url', $information_to_display ) ){ $out .= ''.get_field('url', $id ).''.''; } else {