Be Studios

Intercontinental Design Firm

This is our knowledge center. Enjoy!

Limit the WordPress excerpt();

Little trick: to limit the default WordPress the_excerpt(); for all posts (55 characters), include this on your functions.php:

add_filter('excerpt_length', 'my_excerpt_length');  
function my_excerpt_length($len) { return 25; }

Where change the value that returns to anyone that ou want for your excerpt. The beauty of the technique is that it still uses the same default PHP function the_excerpt();