Home page >> Related Tutorials >>Body

ZBLOGPHP statistics article, page, tag, classification, comment, total access code

Author: A little Jack    Time: 2022-09-12 13:15:32    Browse: 1177   

 ZBLOGPHP statistics article, page, tag, classification, comment, total access code

Total number of articles, total number of categories, total number of pages, total number of tags, total number of comments and total number of views can be called separately. For details, please check the statistics plug-in of bloggers: https://app.zblogcn.com/?id=22042

code:

Step 1: Open the theme template include.php file, find the appropriate location to output the code, and change the theme ID to your own theme ID;

Hello, you need to log in to our account to view the hidden content, please first Sign in To view!

Step 2: Place the following statistics code where you want to display statistics, which can be called separately!

 <p>Total number of articles: {Topic ID_all_artiles()}</p> <p>Total number of categories: {Topic ID_all_categorys()}</p> <p>Total number of pages: {Topic ID_all_pages()}</p> <p>Total number of tags: {Topic ID_all_tags ()}</p> <p>Total comments: {Topic ID_all_comments()}</p> <p>Total Visits: {Topic ID_all_views()}</p>

Tips: This function is a statistical plug-in for bloggers: https://app.zblogcn.com/?id=22042 If you don't understand the plug-in extracted in, please download it for use. If there is a bug or any problem in the use process, you can contact the blogger to pay!


Text label: ZBLOG   Website data   data statistics  
 A little Jack

A little Jack https://lkba.cn

The blogger focuses on Z-Blog website construction, website optimization, computer troubleshooting, reinstallation, optimization, maintenance system, etc, QQ/WX: 2126245521 (please specify the purpose)

Related articles

Previous:

Next:

No comment for this article - Welcome

 Please fill in the verification code

Processed : 0.050 SQL : 14