- 方法一:PHP 处理:
<?php $cfbt = "|"; ?>
[e:loop={'11,14,17,18,',22,0,0,'firsttitle=0','newstimeDESC'}]
<?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]
- 方法二:数据库处理:
[e:loop={'11,14,17,18,',22,0,0,'groupbytitle','newstimeDESC'}]
<a href="<?=$bqsr['titleurl']?>"><?= $bqr['ftitle'] ? $bqr['ftitle'] : esub($bqr['title'], 60) ?></a>
[/e:loop]