-
WordPress 一些标签设置 - [凭此长记]
2006年09月10日 | Tag:
记录我博客的一些标签设置:
-Main Page
1) Categories 计数: 添加红色部分 {list_cats optionall=’0′ all=’All’ sort_column=’name’ optioncount=’1′}
2) Archives 计数: 添加红色部分 {get_archives type=’monthly’ show_post_count="1"}
3) Most Recent Posts 限数: 红色部分可改 {lastposts posts=‘10′}
4) 分页: 在{$content}下添加 <a href="http://greentea.blogsome.com">[首页]</a> {previous_posts_link label = "[前一页]"} :: {next_posts_link label = "[后一页]"} (页码显示需要安装插件,blogsome不可安装:(.)
5) 流量统计: 使用了www.statcounter.com的免费计数器,添加代码如下:
<!– Start of StatCounter Code –>
<script type="text/javascript" language="javascript">
var sc_project=2162942;
var sc_invisible=0;
var sc_partition=19;
var sc_security="13bbd38a";
var sc_text=1;
</script><script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><ahttp://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2162942&java=0&security=13bbd38a&invisible=0" alt="counter stats" border="0"></a> </noscript>
<!– End of StatCounter Code –> href="6) 所有文章列表: 在{$content}下添加 {if $smarty.server.REQUEST_URI == ‘/archives’}
<ul>{get_archives type=’postbypost’ limit='’ format=’html’}</ul>
{/if},然后create new page,添加Link(e.g.我的) http://greentea.blogsome.com/archives7) 字段居中显示: 添加 <p align="center"></p>
-Posts
1) 部分显示-阅读全文: 添加红色部分{the_content more_link_text="[阅读全文]"},然后在post的html格式中要中断的地方添加<!–more–>







