To customize the length we need to add the below-given function in "functions.php".
// Custom length for excerpt function custom_excerpt_length(){ return 15; } add_filter('excerpt_length', 'custom_excerpt_length');
Now in "index.php" where we have posts list in place of "the_content()" use this
echo get_the_excerpt()
That's it. Hope it helped