phpcms调用一级栏目和二级栏目

{loop subcat(0,0,0,$siteid) $r} 
{php $num++}
  <strong><a href="{$r[url]}">{$r[catname]}</a></strong>
  <font>
  {pc:content action="category" catid="$r[arrchildid]" siteid="$siteid" order="listorder ASC"}
    {php $c= count($data)} 
    {loop $data $r}
      <a href="{$r[url]}">{$r[catname]}</a>
      {if $n==$c/2}
        <br />
      {elseif $n!=$c}
      |
      {/if}
    {/loop}
  {/pc} 
  </font> 
{/loop}
原文地址:https://www.cnblogs.com/qhorse/p/4583387.html