Created
December 29, 2015 15:41
-
-
Save geoffgraham/665326d7770cf732b94c to your computer and use it in GitHub Desktop.
The Events Calendar 4.0.4 // Change excerpt length to 100 words
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
// Changes the escerpt length for events to 100 words | |
function custom_excerpt_length( $length ) { | |
if( tribe_is_event() && is_archive() ) { | |
return 100; | |
} | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment