Wordpress显示文章摘要

放在文章的循环里:php

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