<?php the_excerpt(); ?>
摘要字数的设置方法:
在程序的wp-includes文件夹里寻找formatting.php文件,然后找到这行代码:
$excerpt_length = apply_filters(‘excerpt_length’, 55);
55就是摘要字数,改为你想要显示的即可。 <?php the_excerpt(); ?>
摘要字数的设置方法:
在程序的wp-includes文件夹里寻找formatting.php文件,然后找到这行代码:
$excerpt_length = apply_filters(‘excerpt_length’, 55);
55就是摘要字数,改为你想要显示的即可。