simply use this where ever you want to display your title with limited words
<?php echo wp_trim_words( get_the_title(), 5 ); ?>
replace number 5 in above code with whatever number of words you need to display.
Regards.
simply use this where ever you want to display your title with limited words
<?php echo wp_trim_words( get_the_title(), 5 ); ?>
replace number 5 in above code with whatever number of words you need to display.
Regards.