Add Custom Excerpt Length
Changes the default excerpt length to 25.
PHP
function custom_excerpt_length($length) {
return 25;
}
add_filter('excerpt_length', 'custom_excerpt_length', 999);
Snippet Feedback
Did this snippet work for you? Do you have any questions about this snippet? Leave some feedback below.
SHARED BY