In production Emlog template There are many aspects to be optimized, such as user experience Emlog template The optimization in place can increase the return visit rate of visitors and greatly increase the visit volume of the website, thus improving the traffic and ranking of the website.
Today, Blueleaf would like to share emlog Template How to increase the number of today's updated articles? The emlog template counts the number of today's updated articles. This feature has many advantages. It can remind visitors of the number of today's updates and greatly increase the return visit rate of visitors to the website.
How to increase the number of articles updated today in the emlog template? The emlog template statistics the number of articles updated today. The code is as follows. Just copy the code to where the emlog template needs it.
<? php $Log_Model = new Log_Model(); $today = strtotime(gmdate('Y-m-d')); $today_sql = "and date>$today"; $today_num = $Log_Model->getLogNum('n',$today_sql); Echo 'released today'$ Today_num. 'Articles!';
Disclaimer:
Website: Click Copy to share with friends!
All content resources shared by this website, if not noted, are original by Blueleaf. If you need to reprint, please indicate the source; Please contact us in case of infringement Contact handling 。 Please understand!