这一季的秋天,飘落后才发现,这幸福的碎片,要我怎么捡——追忆似水流年。
wordpress 快捷键
[
2009/03/14 03:49 | by ping ]
2009/03/14 03:49 | by ping ]
WP2.7的时候就推出了快捷键功能。(若按键无效,则可以在后台快捷键那个设置的地方打上勾就可以了),相信很少会有人注意到,我也是刚不小心看到的。大致给大家介绍一下一般默认状态下的WordPress的快捷键的一些介绍。
a:审核通过当前选中的留言
s:标记当前选中的留言为 spam
a:审核通过当前选中的留言
s:标记当前选中的留言为 spam
WordPress首页和目录页显示摘要的方法
[
2008/12/16 01:11 | by ping ]
2008/12/16 01:11 | by ping ]
在WordPress系统中,默认的首页和目录页使用的书全文输出,这对于文章内容较长的博客来说很不方面,下面我介绍一个方法,可以简单的实现在WordPress首页和目录页显示摘要而非全文。
首先找到wp-content/themes下你使用的模板目录,查找目录中的文件,如果有home.php则修改home.php,没有的话就修改index.php,找到
这时,你的WordPress首页和分类就显示为摘要信息而不是全文信息了。
首先找到wp-content/themes下你使用的模板目录,查找目录中的文件,如果有home.php则修改home.php,没有的话就修改index.php,找到
<?php the_content(); ?>
这一行,将其修改为以下代码:<?php if(is_category() || is_archive() || is_home() ) {
the_excerpt();
} else {
the_content('Read the rest of this entry »');
} ?>
<div class="details"><div class="inside"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> so far | <a href="<?php the_permalink() ?>">Read On »</a></div></div>
the_excerpt();
} else {
the_content('Read the rest of this entry »');
} ?>
<div class="details"><div class="inside"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> so far | <a href="<?php the_permalink() ?>">Read On »</a></div></div>
这时,你的WordPress首页和分类就显示为摘要信息而不是全文信息了。



