織夢文章頁每個TAG標簽單獨輸出相關文章織夢技
導讀:織夢技巧織夢技巧內容頁模板標簽寫法 {dede:tag row= 30 sort = new getall= 0 }div class= hot mt1 dl class= t營銷型網站建設建設網站。
內容頁模板標簽寫法 {dede:tag row= 30 sort = new getall= 0 }div class= hot mt1 dl class= tbox light dt class= light strong[field:tag /] /strong/dt dd class= light ul class= c1 ico2 [field:tag runphp=yes]global $dsql,$id,$aid;$myid = isset($id) ? $id : $aid;$taga = […]
內容頁模板標簽寫法
{dede:tag row='30' sort='new' getall='0'} <div class="hot mt1"> <dl class="tbox light"> <dt class='light'><strong>[field:tag /]</strong></dt> <dd class='light'> <ul class="c1 ico2"> [field:tag runphp=yes] global $dsql,$id,$aid; $myid = isset($id) ? $id : $aid; $taga = @me; $arow = $dsql->GetOne("Select * From `58pic_tagindex` where tag like '$taga'"); $tid = $arow['id']; if($tid!='') { $tagsql = "Select aid From `58pic_taglist` where tid = $tid And arcrank > -1 group by aid order by aid desc"; $dsql->SetQuery($tagsql); $dsql->Execute('t'); $result = ''; while($arow = $dsql->GetArray('t')) { $ids[] = $arow['aid']; } } if(count($ids) > 0) { $idsStr = join(',', $ids); $query = "Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule, 企業網站建設tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath from `58pic_archives` arc left join `58pic_arctype` tp on arc.typeid=tp.id where arc.arcrank>-1 and arc.id in($idsStr) And arc.id<>$myid order by arc.id desc limit 10";//輸入多少個文章 } $dsql->SetQuery($query); $dsql->Execute('t'); $resu網站seo優化軟件lt = ''; $totalRow = $dsql->GetTotalRow(); while($row = $dsql->GetArray('t')) { $arcurl = GetOneArchive($row['id']); $result .= "<li><a href='{$arcurl['arcurl']}'>{$row['title']}</a></li>"; } if($result=='') $result = "<p style='color:#f00;'> 該TAG標簽沒有相關文章</p>"; @me = $result; [/field:tag] </ul> </dd> </dl> </div&g網站建設哪家好t; {/dede:tag}相關營銷型網站建設建設網站。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-25 ,文章織夢文章頁每個TAG標簽單獨輸出相關文章織夢技主要講述標簽,相關文章,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_8703.html