Change Excerpt Length on WordPress
<?php
add_filter(
'excerpt_length',
function ( $length ) {
// Number of words to display in the excerpt.
return 40;
},
500
);
Source: Change Excerpt Length on WordPress (github.com)
<?php
add_filter(
'excerpt_length',
function ( $length ) {
// Number of words to display in the excerpt.
return 40;
},
500
);
Source: Change Excerpt Length on WordPress (github.com)