Last active
April 12, 2018 02:22
-
-
Save rodgtr1/33018d26c20d253e16f65616448fa2d9 to your computer and use it in GitHub Desktop.
Change Excerpt Length on Specific Instance
This file contains 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
//15 is the amount of words & change three dots to whatever you want at the end of the excerpt | |
<?php echo wp_trim_words( get_the_excerpt(), 15, '...' ); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment