Shorten the_title()
-
I am trying this on the_title():
<?php substr(the_title('', '', FALSE), 0, 22); ?>..
However it won’t work.. It doesn’t show the title at all, but when I do this:
<?php substr(the_title(), 0, 22); ?>..
It shows the title, but doesn’t shorten it. I need to show only the first 22 characters.. How do I go about doing that?..
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Shorten the_title()’ is closed to new replies.