Want to display limited words in wordpress while displaying content? As earlier you tried to combine multiple functions to achieve this. This useful function with do the rest.
echo wp_trim_words( get_the_content(), 50, '...' );
Above code is a resource from