Define how many words to return when using the_excerpt();
.
1 2 3 4 5 6 |
//custom excerpt length function itlc_custom_excerpt_length( $length ) { //the amount of words to return return 20; } add_filter( 'excerpt_length', 'itlc_custom_excerpt_length'); |