pbootcms如何调用网站文章总数 发表评论 10 °A+所属分类:轻松一刻 摘要实现调用网站的文章总数: {pboot@sql sql="select count(id) as total from ay_content"} 收 藏 实现调用网站的文章总数: {pboot@sql sql="select count(id) as total from ay_content"} 文章总数:[sql:total]条 {/pboot@sql} 这个是直接用sql语句统计所有的content id 确定是 如果有些是单页的也会统计在内没有那么高的精准度,但是也足够了。 我的微信公众号 扫一扫关注 我的新浪微博号 扫一扫关注 赞 0 赏 分享