{pc:get sql="SELECT * FROM v9_news WHERE catid IN (61,62,63,64,65) order by id DESC" num="10" return="data" }
{loop $data $n $r}
<LI><SPAN><a href="{$CATEGORYS[$r[catid]][url]}">[{$CATEGORYS[$r[‘catid‘]][‘catname‘]}]</A></SPAN><A href="{$r[url]}" target=_blank>{str_cut($r[title],27,‘‘)}</A></LI>
{/loop} {/pc}
同时调用多个栏目的文章,文章前显示栏目名称,布布扣,bubuko.com
原文:http://my.oschina.net/guomingliang/blog/293245