统计某一栏目所有内容数量的标签教程

日期:2021-11-26 人气:2107
12345678910
{php $sonid=get_sonid_all(栏目ID)}
{cms:rs field="count(1) as tnum" top="1" table="cms_content" where="islock=1 and classid in($sonid)"}
内容数量是:{$rs[tnum]}
{/cms:rs}

将栏目ID换成你的栏目ID

1有帮助,赞一个!
帮助