Stop auto-excerpts

stop-auto-excerpts

Don’t let robots write your auto-excerpts, prompt authors for real excerpts…
Chuck this code in your childtheme‘s function.php

 

/*    CHICKENBOY: stop auto-excerpts

Take control of your excerpts


--------------------------------------------------------------------------------------- *
// Changing excerpt length
function change_excerpt_length($length) {
return 0;
}
add_filter('excerpt_length', 'change_excerpt_length');

 

// Changing excerpt 'more' text (normally […])
function change_excerpt_more($more) {
return 'You forgot to write an excerpt, buddy...';
}
add_filter('excerpt_more', 'change_excerpt_more');

 

 

Thanks to Stephanie Leary

Facearse Tweep Internetmail

Know a better way?

Your email address will not be published. Required fields are marked *