原文来自:https://liye5.com/

1、

[e:loop={'selectsearchid,keyboardfromphome_enewssearchorderbyrand()limit10',10,24,0}]
<ahref="[!--news.url--]e/search/result/?searchid=<?=$bqr['searchid']?>"target="_blank"><?=esub($bqr['keyboard'],10)?>...</a>
[/e:loop]

2、增加显示搜索关键字数量

[e:loop={"select searchid,keyboard,result_num from phome_enewssearch where iskey=0 order by onclick desc limit 10",10,24,0}]
<a href="/e/search/result/?searchid=<?=$bqr[searchid]?>" target="_blank"><?=$bqr[keyboard]?></a>(记录数:<?=$bqr[result_num]?>条)&nbsp;&nbsp;
[/e:loop]

指定一个栏目where iskey=0 and classid=1
指定多个栏目where iskey=0 and classid in(1,2,3……..)

效果: