1.

How to change the default length of the excerpt in WordPress?

Answer»

To CHANGE the default length of the excerpt in WordPress, we have to insert the below-mentioned syntax to the functions.php FILE and EDIT the amount of the WORDS that we desire to be DISPLAYED in our excerpts.

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

Here above X is the number of words to be displayed.



Discussion

No Comment Found