Return to Snippet

Revision: 34739
at October 31, 2010 09:45 by YourListing


Updated Code
<?php $title = the_title('','',FALSE); echo substr($title, 0, 20); if (strlen($title) >20){ echo '&hellip;'; } ?>

Revision: 34738
at October 31, 2010 09:36 by YourListing


Updated Code
<?php $title = the_title('','',FALSE); echo substr($title, 0, 15); {echo '&hellip;';}; ?>

Revision: 34737
at October 27, 2010 22:18 by YourListing


Initial Code
<?php $title = the_title('','',FALSE); echo substr($title, 0, 11); ?>

Initial URL
http://www.wpcult.com/limit-the-characters-that-display-on-the_title/

Initial Description

                                

Initial Title
Limit the number of characters displayed in title

Initial Tags
wordpress

Initial Language
PHP