{php $sql="select arrchildid from v9_category where catid=1 ";}
<!--表名自己改,要什么欄目下的文章總數(shù)就填catid=什么,當前的話填catid=$catid就可以了 -->
{pc:get sql="select count(*) num from v9_news where catid in ($sql) " }
<!-- 排序,分組自己來吧 -->
{loop $data $r}
{$r['num']}
{/loop}
{/pc}