Display website statistics without plugin in WordPress

1. Display post count:

2. Display page count:

3. Display category count:

4. Comment number:

5. Tag count:

6. Set up time filter by day:

 

You can manually to add or delete the coding above. To use those code:

Step 1: Find a best place and put them into 【siderbar.php】. For example:

Step 2: Then, go to 【style.css】 and paste the following code(You may need to fit it by yourself):

 

Or if you want it appear on any post or page, you need a help from a plugin which called “PHP Code for Posts and Pages“(Because WP disabled PHP code on post and page as default setting, so we can use this plugin to active this function), then paste the code and get a shortcode through this plugin and use it on a post or page. The effect is like:

Display website statistics without plugin in WordPress

 

</catmee> 文章全部原创、谢绝转载,作者「BianLei」,如果喜欢欢迎分享链接,相关内容参见本站版权声明
如果您觉得本站的存在对您多少有所帮助,可以用手机支付宝扫一扫以下二维码支付任意金额作为支持:支付宝
本站相关:QQ空间 | Facebook
Tagged . Bookmark the permalink.

2 Ways to notify WordPress comments author upon their replies without plugins
2 Ways to notify WordPress comments author upon their replies without plugins

How to Cloak Affiliate Links in WordPress without Plugin
How to Cloak Affiliate Links in WordPress without Plugin

Create code highlighter without plugin by use “google-code-prettify” in WordPress
Create code highlighter without plugin by use “google-code-prettify” in WordPress

单反买佳能还是尼康?我选宾得……如何选择适合自己的单反相机
单反买佳能还是尼康?我选宾得……如何选择适合自己的单反相机

木下林檎 – 作为偶像时的草壁由佳 cos
木下林檎 – 作为偶像时的草壁由佳 cos

Comment Anonymously? No Problem! | 可以匿名评论了我会说?

Fill up Email address to subscribe reply and display your avatar from Gravatar (If any)
填写邮箱即可显示您在Gravatar的头像