Last active
May 24, 2018 16:17
-
-
Save landbryo/18526c6c0cbf5965047530e1647c55e7 to your computer and use it in GitHub Desktop.
Custom WordPress excerpt length via functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /////////////////////////// | |
| // CUSTOM EXCERPT LENGTH // | |
| /////////////////////////// | |
| function custom_excerpt_length($length) { | |
| return 40; | |
| } | |
| add_filter('excerpt_length', 'custom_excerpt_length'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment