简介:
昨天发布的最新文章调用,https://aizhancloud.com/143.html 今天更新一下最热文章调用的方法:{php}
$order = array(
{php}
$order = array('log_ViewNums'=>'DESC');
$where = array(array('=','log_Status','0'));
$array = $zbp->GetArticleList(array('*'),$where,$order,array(10),'');
{/php}
{foreach $array as $hotlist}
{$hotlist.ViewNums}℃ {$hotlist.Title}{/foreach}
说明:
array(10)是调用最新10篇文章;
{$hotlist.ViewNums}是文章浏览量热度;
{$hotlist.Time('m-d')}是文章发布时间;
{$hotlist.Url}是文章URL地址;
{$hotlist.Title}是文章标题;
foreach就是zblog循环了,样式可以加在foreach标签外面,如果有设置不明白的可以联系爱站云付费操作哟!