Change the default excerpt length.
add_filter('excerpt_length', 'codebykp_custom_excerpt_length', 999);
function codebykp_custom_excerpt_length($length) {
return 20; // Set to desired length
}
Change the default excerpt length.
add_filter('excerpt_length', 'codebykp_custom_excerpt_length', 999);
function codebykp_custom_excerpt_length($length) {
return 20; // Set to desired length
}