Wordpress顯示文章摘要

放在文章的循環裏:php

<?php
     if (!empty($post->post_excerpt) ) {
       //若是文章有摘要則輸出摘要
       the_excerpt();
      }      
?>
相關文章
相關標籤/搜索