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) ); ?>’
- The topic ‘PHP Question…’ is closed to new replies.