请问灵动标签如何实现调用去除重复标题?
可以改成下面
<?php
$cfbt="|";
?>
[e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstime DESC'}]
<?php
if(stristr($cfbt,"|".$bqr['title']."|"))
{
continue;
}
$cfbt.=$bqr['title']."|";
?>
<a href="<?=$bqsr['titleurl']?>"><?=$bqr[ftitle]?$bqr[ftitle]:esub($bqr[title],60)?></a>
[/e:loop]
<?php
$cfbt="|";
?>
[e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstime DESC'}]
<?php
if(stristr($cfbt,"|".$bqr['title']."|"))
{
continue;
}
$cfbt.=$bqr['title']."|";
?>
<a href="<?=$bqsr['titleurl']?>"><?=$bqr[ftitle]?$bqr[ftitle]:esub($bqr[title],60)?></a>
[/e:loop]