Sometime we want to show only some words from the title or content of page/posts in wordpress.
In your php query you can trim title by using this function.
Here i trim the words of post title to show only first 3 words.. you can change as you need..instead of title you can apply this for post content too.
For Title
<?php echo wp_trim_words( get_the_title(), 3 ); ?>
For Content
<?php echo wp_trim_words( get_the_content(), 20 ); ?>
For any help contact me here…