实现代码如下:
{pc:content action="lists" catid="1" num="20" where="posids!=1" order="id desc"} {loop $data $v} <li><a href="{$v['url']}">{$v['title']}</a></li> {/loop} {/pc}
调用分类ID为1的文章列表,并设置条件 posids 不等于 1 。这样就实现了置顶文章与文章列表的文章不重复的功能。
原创文章,作者:UEEDP,如若转载,请注明出处:http://www.wangzhanshi.com/n/17191.html