Wordpress显示文章摘要

放在文章的循环里:

<?php
     if (!empty($post->post_excerpt) ) {
       //如果文章有摘要则输出摘要
       the_excerpt();
      }      
?>

  

posted @ 2018-07-06 17:02  tinyphp  Views(1149)  Comments(0Edit  收藏  举报