How to Change Excerpt Length in WordPress

The excerpt is a short description of posts on the blog list page OR archive page and the default excerpt length in WordPress is very short to describe what the posts about? So, that’s why we have to customize to show more post descriptions.

You can change it with the excerpt_length filter hook function. To change the excerpt length, you have to add the following code in your active theme’s functions.php file.

The above code will change the default excerpt length of WordPress posts to a custom 200 characters length. You can adjust as per your fit in the design.

About the Author: Aman Mehra

Hey! I'm Aman Mehra and I'm a full-stack developer and have 5+ years of experience. I love coding and help to people with this blog.

Leave a Reply

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