• Why does the following code display the actual number “40” and not 40 words of the excerpt?

    function excerpt_length($length) {
    	if( is_home() && !in_category('featured') ) {
    		return 70;
    	} else {
    		return 40;
    	}
    }
    add_filter('the_excerpt', 'excerpt_length');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Advanced Excerpt Length Control Not Working’ is closed to new replies.