Return to Snippet

Revision: 45787
at May 8, 2011 03:49 by jacksaidwhat


Updated Code
// Replace 34 with the number of characters to display.

<?php 
$title = the_title('','',FALSE);
echo substr($title, 0,34); 
if (strlen($title) > 34) echo "..."; 
?>

Revision: 45786
at May 8, 2011 03:45 by jacksaidwhat


Initial Code
<?php 
$title = the_title('','',FALSE);
echo substr($title, 0,34); 
if (strlen($title) > 34) echo "..."; 
?>

Initial URL

                                

Initial Description
Must be used in the loop.

Initial Title
Custom WordPress Title Length

Initial Tags
wordpress

Initial Language
PHP