PHP Question…
-
Hey guys,
Right now I’m displaying post excerpts on my Tag templates as follows:
‘<?php strip_tags( the_excerpt() ); ?>’
Sometimes, however, the excerpt is too long and messes up the page layout. How can I force the exceprt to cut off after a certain number of words or characters? Like this:
‘<?php strip_tags( the_excerpt(CUT OFF AFTER 100 CHARS) ); ?>’
THANKS!!!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP Question…’ is closed to new replies.