Excerpt Length Won't Change
-
I’ve been trying to extend the length of my blog’s excerpts, and haven’t been able to find a solution that works.
I have added the following code to my functions.php page:
// Increase excerpt length function my_excerpt_length($length) { return 50; // Or whatever you want the length to be. } add_filter('excerpt_length', 'my_excerpt_length', 999 );
But nothing happens. The excerpts do not change length.
Before, I tried this as well:
function custom_excerpt_length( $length ) { return 50; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
And when I save that, I get a white screen of death.
Getting frustrated, because I know I’m close and it’s probably something really simple that needs to change to get this to work, since this seems to work for everyone else.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Excerpt Length Won't Change’ is closed to new replies.