今天给学成高考做网站的时候,首页需要调用多个栏目的文章,在这里记录下
代码如下:
[e:loop={"1,2,3",30,0,0,'','newstime DESC'}]<li><a href="<?=$bqsr['titleurl']?>"><?=$bqr['title']?></a><span class="time">2020-10-10</span><p><?=esub($bqr[smalltext],80)?>...</p></li>[/e:loop]
这段代码的解释是这样的:
[e:loop={栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序}]
模板代码内容
[/e:loop]
https://aliyun.ccswust.org/wp-content/uploads/2020/10/1603099439-Snipaste_2020-10-19_17-23-42.jpg
0 个评论
要回复文章请先登录或注册