Start typing to search...

Searching for "{{search_term}}"

Search results for "{{search_term}}"

Oops! Nothing found based on your query.

 
{{auth_form.errors}}

No account found with this email address. Fill out this form to create an account.

 

Change WordPress Excerpt Length

Posted on March 13, 2014 by Mohit Aneja in WordPress.

Change WordPress Excerpt Length

You can add the following code in your theme’s functions.php file to change the WordPress¬†excerpt length. Change the number (100)¬†to the desired length.

add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_length($length) { return 100; }