JavaShuo
Wordpress显示文章摘要
时间 2019-11-05
标签
wordpress
显示
文章
摘要
放在文章的循环里:
php
<?php if (!empty($post->post_excerpt) ) { //若是文章有摘要则输出摘要 the_excerpt(); } ?>