Change WordPress Excerpt Length

Spread the love

You can add the following code in your theme’s functions.php file to change the WordPress excerpt length. Change the number (100) to the desired length.

add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_length($length) { return 100; }
contact us

IOGOOS WordPress development services

Leave a Reply

Your email address will not be published. Required fields are marked *

Enquiry Now

Our consultants will respond back within 8 business hours or less.