手动输出摘要

Avatar of Chris Coyier
Chris Coyier

一直都有 the_excerpt(),但它做了一些非常具体的事情(例如,添加段落标签,添加 […],不尊重 more 评论,使用已保存的摘要……)。高级摘要 在自定义方面非常出色。

但是,如果您想要真正简单的操作

<?php 
  $content = get_the_content(); 
  echo substr(strip_tags($content), 0, 130) . '...'; 
?>