WordPress Code Snippets

A fresh mix of code snippets and tutorials

WordPress Change Excerpt Length

220

This code snippet is SO easy.. check it out if you want to change the default number of words included by default in WordPress excerpts.

To customize the WordPress excerpt length, add the following code to functions.php:

Nothing else to do except to change the 20 to whatever number of words you would like to include in all excerpts. Easy peasy!

Reference

Learn more

WordPress Themes In Depth


Show Support

Like our new Facebook Page to show support!