Ok, for those who want to give this a shot, I figured it out with my non-existant PHP skills.
Ok, so back near 399 of featured-posts-grid.php, after
global $post;
$temp_post = $post;
I just made a function, where I could pass the $val->post_title
and a limit as arguments.
So, it goes:
function limit_chars ($string, $limit) {
if (strlen($string) > $limit) {
$text = substr($string,0,strpos($string,' ',$limit)); }
else $text = $string;
$text = $text . ' ...';
return ($text);
}
Then in the next block, where it pulls down all the elements of each post it throws, right after the call:
foreach ( $recent_posts as $key=>$val )
{
setup_postdata($val);
I pull up my little character+word-break+… limiter with this:
$post_details[$key]['post_title'] = limit_chars($val->post_title, 45);
-And then let the blocks for excerpt, author, etc. run normally.
Took awhile, but I just tested it now and it seems to run great! ::knock on wood::
So, there you are. If anyone else needs it, it appears to work.
Cheers!