首页 » 开发语言, 系统相关 » wordpress 让主页显示文章摘要

wordpress 让主页显示文章摘要

本主题发现主页显示一篇文章要显示全部很不便于选择性阅读,今日发现了方法,在此给大家分享

打开主题文件夹中的index.php,用记事本都可以,找到<?php the_content(”);  ?>

替换成

<?php if(!is_single()) {
the_excerpt();
} else {
the_content(__(‘(more…)’));
} ?>

保存就可以了

打赏

目前这篇文章有1条评论(Rss)评论关闭。

  1. Ward Breidenbach | #1
    2011-12-21 at 07:01

    have already been following your site for several days. absolutely love what you posted. btw i will be conducting a study relating to this topic. do you know other great websites or maybe forums in which I can get more information? thanks in advance.