Limit number of characters in different excerpts
Put the following code into functions.php: // TRUNCK STRING TO SHORT THE STRINGS function trunck_string($str = “”, $len = 150, $more=”true”) { if ($str == “”) return $str; if (is_array($str)) return $str; $str = strip_tags($str); $str = trim($str); // if it’s les than the size given, then return it if (strlen($str) <= $len) return $str; … Read more