WP Tricks: How to Limit the Post Title Word Count
Pretty posts
In WordPress,
Support: WordPress 3.3+
Reference: https://codex.wordpress.org/Function_Reference/wp_trim_words
wp_trim_words() function that will help you to limit the word count in your post title. Just use following code where ever you want to display your title with limited word count.<?php echo wp_trim_words( get_the_title(), 10, '...' ); ?>Replace 10 value from above code with whatever number of words you want to display.
Support: WordPress 3.3+
Reference: https://codex.wordpress.org/Function_Reference/wp_trim_words




No Comment to " WP Tricks: How to Limit the Post Title Word Count "