zblog批量调取多个tag及其tag下的文章列表

{$a = array('11','27','28','31','26','30','7');}{*按顺序填入tagID*}
{foreach $a as $key => $tid}
<div class="sort-list">
<div class="proitemtop clearfix">
<span>0{$key+1}</span>
{$array=Getlist(4,null,null,null,array($zbp->GetTagByID($tid)));}
<h3><a href="{$zbp->GetTagByID($tid)->Url}">{$zbp->GetTagByID($tid)->Name}</a></h3>
<small class="counts"><i class="kico-book"></i> 分类下共{$zbp->GetTagByID($tid)->Count}篇文章</small>
<p>{$zbp->GetTagByID($tid)->Intro}</p>
<div class="prolianjie">
<a href="{$zbp->GetTagByID($tid)->Url}" class="more_detail" rel="nofollow">查看更多</a>
</div>
</div>
<ul class="clearfix">
{foreach $array as $article}
<li><a href="{$article.Url}" class="cp-pic"><img src="{suijiimg_suiji($article)}" alt="{$article.Title}"></a>
<div class="cp-tit"><a class="title" title="{$article.Title}" href="{$article.Url}">{$article.Title}</a>
<div class="postmeta">
<time>{$article.Time('Y-m-d H:i:s')}</time>
<span><i class="kico-eye"></i> {$article.ViewNums}    ℃</span>
<p class="zhaiyao"></p>
<div class="tags"><a href="//www.shengpingzhang.cn//zb_system/cmd.php?act=ArticleEdt&id={$article.ID}&Fastedit" target="_blank">编辑</a>
{if $article.Tags}<i class="kico-tag"></i> 标签:{foreach $article.Tags as $atag}<a href="{$atag.Url}" target="_blank">{$atag.Name}</a>{/foreach}{/if}
</div>
</div>
</div>
</li>
{/foreach}
</ul>
</div>
{/foreach}
posted @ 2021-02-04 18:13  绿林豪士  阅读(420)  评论(0编辑  收藏  举报