Tektriks

Coding starts here

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

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz