phpcms调用文章不显示推荐文章怎么办?列表页不显示某个推荐位文章的办法
此效果仅满足特殊需要,用的人不多,所以不过多说明。
详细标签如下:
{pc:get sql="SELECT `id` FROM `v9_position_data` WHERE `posid`='2' AND `catid`=$catid ORDER BY `v9_position_data`.`id` DESC" num="10"}{loop $data $d}{pc:get sql="SELECT `url`,`title` FROM `v9_news` where `id`<>$d[id] AND `catid`=$catid ORDER BY `v9_news`.`inputtime` DESC" num="10" return="info"}{loop $info $r}<li"><a href="{$r[url]}" title="{$r[title]}">{$r[title]}</a></li>{/loop}{/pc}{/loop}{/pc}
以上代码效果为不显示10条推荐位为首页头条推荐的文章。
相关推荐:phpcms教程
以上就是phpcms调用文章不显示推荐文章怎么办的详细内容,更多请关注24课堂在线网其它相关文章!