WordPress Chinese Forums's Archiver

快乐小虾米 发表于 2008-10-1 09:03

首页摘要的显示方法与大家分享

先在模板里以<?php the_excerpt();?>来替换<?php the_content();?>,
将<p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">阅读全文... &raquo;</a><p>
放在刚才替换的那句代码下面一行,保存修改后,刷新一下博客页面,是不是成功了!

blanksun 发表于 2008-10-1 10:21

支持分享

cnnet 发表于 2008-10-2 00:57

:)
UP!

jsuper 发表于 2008-10-2 11:10

对于wordpress classical这个自带的另一套模板也适用吗?它可是首页和文章页共用一个页面的。

凡高的耳朵 发表于 2008-10-2 11:53

楼主发错版面了。应该发到综合版面。

iamfather 发表于 2008-10-2 12:41

我也是用这样显示的。不过我是利用WP中文工具包限制字数的。呵呵

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.