修改wordpress首页文章摘要字数设置

在程序的wp-includes文件夹里寻找formatting.php文件,然后找到这行代码:
$excerpt_length = apply_filters(‘excerpt_length’, 55);$excerpt_more = apply_filters(‘excerpt_more’, ‘ ‘ . ‘[…]‘);
这里的55就是显示的字符数量,可以通过修改这个数字来达到目的。