I have this working... but.
<?php
$thetitle = $post->post_title; /* or you can use get_the_title() */
$getlength = mb_strlen($thetitle);
$thelength = 25;
echo mb_substr($thetitle, 0, $thelength);
if ($getlength > $thelength) echo "...";
?>
Just say the title is "Hey, how are you" and it truncates it after "Hey, ".
There is a space I want to eliminate after the comma and before the end quote.
Is there a way to do this? Otherwise the title looks like:
Hey, ...
Instead of:
Hey,...
Thanks