首页 > WrodPress > WordPress 首页如何只显示摘要

WordPress 首页如何只显示摘要

编辑目录\wp-content\themes\classic 下  index.php

代码中找到<?php the_content(__(’(more…)’)); ?>或者<?php the_content(); ?>

修改为

<?php if(!is_single()) {
     the_excerpt();
     } else {
     the_content(__('(more…)'));//或者<?php the_content(); ?>
  } ?>

原创文章转载请注明出处:云飞扬IT的blog

本文链接: http://www.ajaxcn.net/archives/48

分类: WrodPress 标签: ,
一键分享到:新浪微博分享  分享到网易微博    转贴到开心网  推荐到豆瓣  分享到QQ空间    RSS订阅
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.