wordpress显示文章摘要

放在文章的循环里:

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

  

猜你喜欢

转载自www.cnblogs.com/tinyphp/p/9274576.html