在模板里将推荐位代码换成下面的,代码如下:
{php $f=array();}
{pc:content action="position" posid="19" catid="11" order="listorder DESC" thumb="1" moreinfo="1" num="10" }
{loop $data $n $r}
{php $f[]=$r['id'];}
{/loop}
{php $t = join(',', $f);}
{/pc}
{if $t }
{php $db = pc_base::load_model('content_model'); }
{php $aa = $db->select("id IN($t) AND status = 99 ",'title,url,thumb', 5, 'id DESC, listorder DESC');}
–Cuoxin.com–
{loop $aa $r}
{/loop}
{/pc}
{php unset($aa);}
{/if}
phpcmsv9 推荐位文章未审核展示
在模板里将推荐位代码换成下面的,代码如下: {php $f=array();} {pc:content action=position posid=19 catid=11 order=listorder DESC thumb=1 moreinfo=1 num=10 } {loop $data $n $r} {php $f[]=$r[id];} {/loop} {php $t = join(,, $f);} {/pc} {if $t }
本文来自网络,不代表站长网立场,转载请注明出处:https://www.tzzz.com.cn/html/jianzhan/jy/2021/1217/39958.html