Home > Tips & Tricks > How to Change Excerpt Length in WordPress

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.

Photo of author

About Aman Mehra

Hey there! I'm Aman Mehra, a full-stack developer with over six years of hands-on experience in the industry. I've dedicated myself to mastering the ins and outs of PHP, WordPress, ReactJS, NodeJS, and AWS, so you can trust me to handle your web development needs with expertise and finesse. In 2021, I decided to share my knowledge and insights with the world by starting this blog. It's been an incredible journey so far, and I've had the opportunity to learn and grow alongside my readers. Whether you're a seasoned developer or just dipping your toes into the world of web development, I'm here to provide valuable content and solutions to help you succeed. So, stick around, explore the blog, and feel free to reach out if you have any questions or suggestions. Together, let's navigate the exciting world of web development!

Leave a Comment