找到首页模板搜索
{php $num++}
在其后面增加代码即可
{php if($r['ismenu']!=1) continue;}
完成代码如下
{loop subcat(0,0,0,$siteid) $r}
{php $num++}
{php if($r['ismenu']!=1) continue;}
{$r[catname]}更多>>
{pc:content action="lists" catid="$r[catid]" order="updatetime DESC" thumb="1" num="1" return="info"}
{loop $info $v}
{str_cut($v['title'],46)}
{str_cut($v['description'],120)}
{/loop}
{/pc}
{pc:content action="lists" catid="$r[catid]" num="5" order="id DESC" return="info"}
{loop $info $v}
· {str_cut($v['title'],65)}{/loop}
{/pc}
{if $num%2==0}
{/loop}