excerpt in characters
I have code in functions.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); } but i need to limit excerpt in number of characters, could you help me with that? 4 s 4 I used this code in one of my last projects: … Read more