1. Home
  2. Docs
  3. Subscribe2
  4. Hooks, API & Customization
  5. s2_excerpt_length


this hook allows the length of the default excerpt to be modified. the default is approximately 55 words. Example code to change the excerpt length is as follows:

function my_excerpt() {
// return whatever number of words you want the excerpt length to be 
return 30;
add_filter('s2_excerpt_length', 'my_excerpt');

Was this article helpful to you? Yes No

How can we help?