Viewing 1 replies (of 1 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi rrossi,

    You can change the default excerpt length by adding the following filter to the functions.php file in your theme. In this example, you would change the length to 20 words.

    function custom_excerpt_length( $length ) {
    	return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Here’s the reference in the WordPress Codex.

    Here’s a description of what the functions.php file is and how to find it.

Viewing 1 replies (of 1 total)
  • The topic ‘Limit excerpt to fixed number of words’ is closed to new replies.