I have had the whitescreen issue for the past few days, it occured during my attempt in getting h2 tags to live through the excerpt stripping procedure.
In my attempt I found an overall solution that made my previous excerpt length and read more links redundant so I copy and pasted the entire function with all the whistles – to cut a long story short, the issue is in the excerpt length when used as so…
<?php
function string_limit_words($string, $word_limit)
{
$words = explode(' ', $string, ($word_limit + 1));
if(count($words) > $word_limit)
array_pop($words);
return implode(' ', $words);
}
?>
After removing a similar snippet from my functions.php, all is back to normal.
This solution was found by a member named “clickit” about 2 years ago.