Today I’m going to share a little snippet to change or customize excerpt length on your WordPress site. Excerpt is a quick summary about an article and by default, WordPress will pull the first 55 words from the article as the excerpt.
To change the excerpt length, simply put the following code in the functions.php file of your child theme:
The code will pull the first 30 words as an excerpt. You may change the number to any value as you wish.
Leave a Reply