January 31, 2017
Excerpt length
Description:
Add php code to child theme.
Kind:
PHP
PHP:
function new_excerpt_more($more) { global $post; return '… ID) . '">' . 'Read More!' . ''; } add_filter('excerpt_more', 'new_excerpt_more'); function my_excerpt_length($length) { return 10; // Or whatever you want the length to be. } add_filter('excerpt_length', 'my_excerpt_length');