Zblogphp calls the method with the most comments for the latest and hottest articles
{foreach GetList(10) as $newlist} <li><span>{$newlist.Time('m-d')}</span><a href="{$newlist.Url}" title="{$newlist.Title}">{$newlist.Title}</a></li> {/foreach}
{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} <li><span>{$hotlist.ViewNums}℃</span><a href="{$hotlist.Url}" title="{$hotlist.Title}">{$hotlist.Title}</a></li> {/foreach}
{php} $order = array('log_CommNums'=>'DESC'); $where = array(array('=','log_Status','0')); $array = $zbp->GetArticleList(array('*'),$where,$order,array(10),''); {/php} {foreach $array as $hotlist} <li><span>{$hotlist. CommNums} Comments</span><a href="{$hotlist. Url}" title="{$hotlist. Title}">{$hotlist. Title}</a></li> {/foreach}
Can't find a tutorial that can solve your problem?
-
Charging zblogphp template The 9th zblog enterprise theme of Tianxing Studio has its own form to submit email reminders, etc zero 2019-12-11 seventeen thousand four hundred and seven Price: four hundred and sixty-eight Online purchase -
Charging zblogphp template Tianxing Studio ppt download template is suitable for sites with resources to sell vips one 2019-10-03 thirteen thousand seven hundred and sixty-four Price: one hundred and ninety-nine Online purchase -
Wordpress template Tianxing Studio wordpress download station theme is applicable to software/app/game and other download stations zero 2022-05-06 twelve thousand three hundred and eighty-one Price: three hundred and fifty-five Online purchase -
Charging zblogphp template Tianxing Studio zblogphp enterprise theme 6 Self configurable atmosphere zblog enterprise theme two 2018-06-26 forty-nine thousand nine hundred and eighty-two Price: two hundred and fifty-eight Online purchase
Related recommendations
-
Zblogphp comes with a complete set of js framework comment interfaces 12-04 -
The zblogphp hook interface inserts the specified content into the article body 07-14 -
In 2020, version 1.6 of zblog will finally go online 03-26 -
The call tags of the total number of articles and comments called by zblogphp 03-16 -
How to control the number of calls to the latest articles in the right column of zblog? 03-11 -
Discussion on setting tags for zblogphp comments 08-04 -
Zblog 1.5 officially released: Z-BlogPHP 1.5 Zero Released! 10-31 -
Zblogphp determines whether the user logs in 10-21 -
Zblogphp obtains articles of multiple categories and sorts them according to the specified requirements (the latest hot reviews) 04-18 -
Can ZBLOG PHP use PHP 7? 01-19 -
The method of adding hot articles, latest articles and other blocks to the right column of zblogphp 11-05 -
Zblogphp's Pits: Why are sub classified articles not displayed under the parent category? 06-15 -
Precautions for the use of Z-BlogPHP on HiChina free virtual host 06-12 -
Zblogphp image immobilizer code Other files are also available 05-20 -
Advanced Tutorial: jq Color Palette Added in the Background of zblogphp 02-28 -
Zblogphp pseudo static rule (URL configuration) case description 01-07
yes seven Comments from netizens:
-
Huizi Five years ago (April 23, 2019) reply Blogger, I want to ask how to call the article with the highest number of hits in the specified column?? -
Tianxing Studio Five years ago (April 23, 2019) reply https://www.txcstx.com/post/957.html -
Huizi Five years ago (April 23, 2019) reply Thank you, I love you
-
-
-
Muzi Seven years ago (2017-09-22) reply Brother, how can I get the value in a certain period of time by calling the code of the 10 articles with the most hits? That is to say, the articles published between July and August are clicked most, instead of being read in the content of the whole site?
-
yibin 8 years ago (2016-12-23) reply Looking for this
-
Orange sunlight 10 years ago (March 28, 2015) reply Brother, can we change it to related next time? I'm afraid of misleading people by copying like this. -
Tianxing Studio 10 years ago (March 28, 2015) reply (⊙﹏ ⊙) b OK
-
welcome you Comment:
Cancel Reply
-
Zblog enterprise theme -
Zblog image theme -
Zblog resource topic -
Zblog CMS topic -
Wordpress template -
Zblog video theme -
Zblog Taobao guest theme -
Zblog navigation topic
Select a theme?
-
Latest articles -
Hot article ranking -
Most Comments
-
one Shopping activity on the official website of Tianxing Studio: unlimited number of times and amount of 20% discount coupons 04-17 -
two Tianxing Studio zblog pure blog theme vue3+applet dual version 03-19 -
three Error causes and solutions of introducing vant into vue3 project 03-12 -
four Tianxing Studio zblog encyclopedia theme can be matched with member plug-ins to realize knowledge payment profitability 03-06 -
five How does zblog intercept a summary with a specified number of words? Introduction to the custom interception method of zblog summary 02-29 -
six Tianxing Studio 2023 Double 11 Event: 50% discount coupons 11-05 -
seven Tencent Cloud 2023 Double 11 Activity: 2H2G3M lightweight server 88 new users for one year 11-05 -
eight AliCloud 2023 Double 11 Activity: 2-core 2G3M bandwidth ECS 99 yuan/year! 10-31 -
nine Tianxing Studio zblog free login paid reading plug-in supports Alipay WeChat payment Hupi Pepper payment 10-09
-
Label aggregation -
×1 Tourism template ×2 Zblog Installation Theme ×1 Advertising Space Collection ×1 Swiper download ×1 Login error ×3 Tianxing User Center ×1 Wordpress website ×1 YtUser Template ×3 swiper ×2 Ali font library ×1 WeChat login ×1 Remove copyright ×1 hometown ×2 Zblog Member Center ×1 Zblog call tag ×2 Self use theme ×1 UTF-8 ×1 grid ×1 Articles in the same column ×1 Waterfall flow layout template
Latest comments
-
Tianxing Studio 07-05 See the update record, which was updated on the 29th of last month Commented on: Tianxing Studio zblog novel station theme online multiple/single novel switching can open the charging function -
visitor 07-05 Is this topic still updated Commented on: Tianxing Studio zblog novel station theme online multiple/single novel switching can open the charging function -
Tianxing Studio 06-15 Open the editing text, select the code language, and then whether you enter and break lines or copy and paste, it will not be divided into one line and one box, so I don't understand how you did it Commented on: Introduction to the code for zblog to determine whether the plug-in is installed or enabled -
visitor 06-14 Many lines of code posted in zblog articles are divided into one line and one box, one line and one box. How to adjust the code to be the same as yours in one box Commented on: Introduction to the code for zblog to determine whether the plug-in is installed or enabled -
Tianxing Studio 06-13 This function is already available Commented on: Tianxing Studio zblog navigation single page plug-in: every webmaster needs a dedicated navigation page!