[wordpress插件] CountPostsCountPosts

wordpress 插件 文章 2020-04-03 14:50 453 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

CountPosts is plugin for WordPress Blog.

CountPosts是WordPress博客的插件。

It’s very easy to install and use.

安装和使用非常简单。

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不会计算您的访问次数。

CountPost make u list of the most read post, with hits for every post separated.

CountPost使u成为阅读次数最多的帖子的列表,每个帖子的点击都被分隔。

Further Information

其他信息

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/ 中找到

安装步骤

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)

1.
      

1。
      

;

;

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)添加

Code (php)

代码(php)

1.      

1。      

in sidebar.php First attribute is print before visits number, and second is after visits number

在sidebar.php中,第一个属性是访问次数之前的打印内容,第二个属性是访问次数之后的打印内容

5) Add

5)添加

Code (php)

代码(php)

1.      

1。      

somewhere when u want to show top list of read posts.

当您想显示已读帖子的顶部列表时。

Using TopHitsList();

使用TopHitsList();

function

功能

Code (php)

代码(php)

1.

1。

    ?, $beforeLink =?

      ?, $ beforeLink =?

    • ?,
         

    • ?,
         

      2.
            

      2.
            

      $afterLink = ?

    • $ afterLink =吗?

      ?);

      ?);

      Code (php)

      代码(php)

      1.

      1。

      2.

      2。

        ?, $beforeLink =?

          ?, $ beforeLink =?

        • ?,$afterLink = ?
        • ?,$ afterLink =?

          ?);
             

          ?);
             

          4.

          4。

          5.

          5。

          6.
                

          6.
                

          /*$beforeAll – print before all.
             

          / * $ beforeAll –先打印。
             

          7.
                

          7.
                

          $afterAll – print after all.
             

          $ afterAll –毕竟打印。
             

          8.
                

          8.
                

          $beforeLink – print before post link.
             

          $ beforeLink –在发布链接之前打印。
             

          9.
                

          9.
                

          $beforeRead – print after post link and before hits.
            

          $ beforeRead –在帖子链接之后和命中之前打印。
            

          10.
                

          10.
                

          $afterRead – print after hits.
            

          $ afterRead –点击后打印。
            

          11.
                

          11.
                

          $afterLink – print after $afterRead*/
            

          $ afterLink –在$ afterRead * /
          之后打印  

          12.
                

          12.
                

          ?>
            

          ?>
            

          13.

          13。

下载地址
https://downloads.wordpress.org/plugin/countposts-v-10-wordpress-plugin.zip
-EOF-

AI助手支持GPT4.0