1 2 3 4 5 6 7 8 9 10 11
// Change Excerpt length function custom_excerpt_length( $length ) { return 12; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); // Replace the default ellipsis function new_excerpt_more( $more ) { return '…'; } add_filter('excerpt_more', 'new_excerpt_more');
You can clone a snippet to your computer for local editing. Learn more.