标签归档:wordpress

WordPress Twenty Fourteen 主题首页显示摘要

主题文件夹下面的 content.php 文件,大约 47 行的位置,默认是只有搜索页面才会显示摘要所以将其修改为:

<?php if ( is_search()   || is_category() || is_archive() || is_home()   ) : ?>
<div>
    <?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>