Custom WordPress Title Length
Must be used in the loop.
Copy this code and paste it in your HTML
// Replace 34 with the number of characters to display.
<?php
$title = the_title('','',FALSE);
if (strlen($title) > 34) echo "..."; ?>
Report this snippet
Comments
Subscribe to comments