excerpt_length on manual excerpts
-
The following code only changed the length of the automatically generated excerpts. How do I apply these rules to change the length of my manual excerpts?
What do I need to do to the following code?
Any help would be appreciated, I’ve been trying to nut this one out for a while now.function excerpt_length($length) { if( is_home() && !in_category('featured') ) { return 70; } else { return 40; } } add_filter('excerpt_length', 'excerpt_length');
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘excerpt_length on manual excerpts’ is closed to new replies.