The excerpt_length
filter allows you to set the length of the excerpt.
Examples
If you want remove excerpt on category pages:
add_filter( 'excerpt_length','lh_custom_category_excerpt_length', 1000 ); function lh_custom_category_excerpt_length( $length ) { if ( is_category() ) { return 0; } return $length; }
Usage
Please refer to the Using Filters article to learn how to use this filter.