Created
May 20, 2015 08:08
-
-
Save speedguy/8475ebcdedd225a82ba7 to your computer and use it in GitHub Desktop.
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
| add_filter('excerpt_length','custom_excerpt_length', 999); | |
| function custom_excerpt_length( $length ) | |
| { | |
| if (get_post_type() == "my-custompost-type1") | |
| return 100; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment