标签 Typecho代码 下的文章


由   YIem   撰写于    浏览:3409  评论:0
Typecho判断当前页的第几篇文章,并单独输出代码,可应用于第一篇文章底部广告<?php if ($this->sequence == 0): ?> //需要的插入 <?php endif; ?>

由   YIem   撰写于    浏览:3409  评论:0
Typecho 文章字数统计,Typecho统计字数代码在functions.php中写入代码:function art_count ($cid){ $db=Typecho_Db::get (); $rs=$db->fetchRow ($db->select ('table.contents.text')->from ('tab[...]

由   YIem   撰写于    浏览:4040  评论:0
Typecho前台输出文章总数、分类总数、评论总数、页面总数的方法代码<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?> <li>文章总数:<?php $stat->publishedPostsNum() ?>篇</li> [...]