{php $where = "catid IN (25,26,20,21) "} {pc:content action="position" posid="2" order="listorder DESC" where="$where" moreinfo="1" num="2"} {loop $data $r} <a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}</a><br> {str_cut($r[description],112)} <div class="bk20 hr"><hr /></div> {/loop} {/pc}
但是这样写就不可以,应该是在pc标签里面 不解析 catid IN (25,26,20,21) 这语句,晕!
{pc:content action="position" posid="2" order="listorder DESC" where="catid IN (25,26,20,21) " moreinfo="1" num="2"} {loop $data $r} <a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}</a><br> {str_cut($r[description],112)} <div class="bk20 hr"><hr /></div> {/loop} {/pc}
以上就是关于PHPCMS调用多栏目推荐位的所有内容,有兴趣的朋友可以试试看。
声明:【注明为本站原创的文章,转载请注明出处与原文地址!本站部分转载文章能找到原作者的我们都会注明,若文章涉及版权请发至邮箱:59818485@qq.com,我们以便及时处理。向本站投稿或需要本站向贵司网站定期免费投稿请加QQ:59818485,微信:15045371827】
帝玖网络 Copyright © 2018-2030.All Rights Reserved。 黑ICP备18004995号-3 技术顾问:高佰军