Check out the WordPress Codex reference page for the_excerpt()
as it is a built-in way of doing what you’re looking to accomplish:
EDIT: it also has an example for shortening the excerpt beyond the default length.
Check out the WordPress Codex reference page for the_excerpt()
as it is a built-in way of doing what you’re looking to accomplish:
EDIT: it also has an example for shortening the excerpt beyond the default length.