Tag Archives: Simple WordPress Title Limit Function

Simple WordPress Title Limit Function

Put this code in to your function.php (Note: Fix php tag!)- < ?php  function the_title2($before = ”, $after = ”, $echo = true, $length = false) { $title = get_the_title(); if ( $length && is_numeric($length) ) { $title = substr(