Wordpress显示文章摘要
放在文章的循环里:
<?php
if (!empty($post->post_excerpt) ) {
//如果文章有摘要则输出摘要
the_excerpt();
}
?>
本文来自博客园,作者:tinyphp,转载请注明原文链接:https://www.cnblogs.com/tinyphp/p/9274576.html
向着星辰与深渊,博客园加油
放在文章的循环里:
<?php
if (!empty($post->post_excerpt) ) {
//如果文章有摘要则输出摘要
the_excerpt();
}
?>
本文来自博客园,作者:tinyphp,转载请注明原文链接:https://www.cnblogs.com/tinyphp/p/9274576.html
向着星辰与深渊,博客园加油