I have used wp_trim_words
for get words in Wordpress paragraph. The paragraph is in Chinese letter. I want to get 10 words from the wordpress paragraph. But it is showing more work. i think.If it actual 10 words, then i want to take 30 character, So i used substr()
for this. This is also return a different symbol in this.
I have used this for getting 10 words
wp_trim_words( get_the_content($postlist->post->ID), 10 )
It is showing like this
After this i have tried also this
$result = substr($myStr, 0, 5);