AI助手支持GPT4.0
CountPosts is plugin for WordPress Blog.
CountPosts是WordPress博客的插件。
It’s very easy to install and use.
安装和使用非常简单。 p>
This plugin count visits on your blog, but not when u are log-in as admin.
此插件计数访问您的博客,但是当您以管理员身份登录时不会访问。
Also count visits for every post separated, and u know in every moment how many people read your posts.
还要统计每个分开的帖子的访问次数,您随时都知道有多少人阅读了您的帖子。
U can see what is the most read post in your blog.
您可以在您的博客中看到最常阅读的帖子。
Also when u read your posts, CountPost won’t count your visits.
另外,当您阅读您的帖子时,CountPost不会计算您的访问次数。 p>
CountPost make u list of the most read post, with hits for every post separated.
CountPost使u成为阅读次数最多的帖子的列表,每个帖子的点击都被分隔。 p>
More information, the latest updates can found at the http://www.ivandjurdjevac.comazno/countposts-v-10-wordpress-plugin/
更多信息,最新更新可在http://www.ivandjurdjevac.comazno/countposts-v-10-wordpress-plugin/ p>中找到
1) Add CountPost.php in Plugin folder
1)在插件文件夹中添加CountPost.php
2) In Plugins section, click on the activate button for CountPost plugin
2)在“插件”部分中,单击CountPost插件的激活按钮
3) Add
3)添加
Code (php)
代码(php) p>
1.
1。
;
; p>
in index.php or single.php (It depending of your Theme you using) somewhere before comments or where ever you like.
在index.php或single.php中(取决于您使用的主题)在评论之前或您喜欢的地方。
First and second attribute can be changed.
可以更改第一个和第二个属性。
4) Add
4)添加
p>
in sidebar.php First attribute is print before visits number, and second is after visits number
在sidebar.php中,第一个属性是访问次数之前的打印内容,第二个属性是访问次数之后的打印内容
5) Add
5)添加
somewhere when u want to show top list of read posts.
当您想显示已读帖子的顶部列表时。 p>
Using TopHitsList();
使用TopHitsList();
function
功能
1。 p>
2.
$afterLink = ?
$ afterLink =吗? li>
?);
?); p>
2。 p>
?);
4.
4。 p>
5.
5。 p>
6.
/*$beforeAll – print before all.
/ * $ beforeAll –先打印。
7.
$afterAll – print after all.
$ afterAll –毕竟打印。
8.
$beforeLink – print before post link.
$ beforeLink –在发布链接之前打印。
9.
$beforeRead – print after post link and before hits.
$ beforeRead –在帖子链接之后和命中之前打印。
10.
$afterRead – print after hits.
$ afterRead –点击后打印。
11.
$afterLink – print after $afterRead*/
$ afterLink –在$ afterRead * / 之后打印
12.
?>
?>
13.
13。 p>
原文出处:http://www.sanshu.cn/a/8883.html
群主管理都是支付大佬