Tektriks

Coding starts here
Home / Blog

Display limited words in WordPress

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x