Title: Post Ranking View
Author: Leo Baiano
Published: <strong>2014 年 1 月 5 日</strong>
Last modified: 2014 年 1 月 15 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/post-ranking-view.svg)

# Post Ranking View

 作者：[Leo Baiano](https://profiles.wordpress.org/leobaiano/)

[下载](https://downloads.wordpress.org/plugin/post-ranking-view.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/post-ranking-view/#description)
 * [评价](https://cn.wordpress.org/plugins/post-ranking-view/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/post-ranking-view/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/post-ranking-view/#developers)

 [支持](https://wordpress.org/support/plugin/post-ranking-view/)

## 描述

This plugin generates a list of more pupulares posts based on the number of visits
the post received. The plugin uses cookies to ensure that the user’s visit is counted
only once in each post, making the manipulation of the ranking.

You can set how many posts will be displayed in the ranking set that only posts 
from a particular CPT or a particular category will be taken into consideration,
among other settings.

#### Contribute

You can contribute to the source code in our [GitHub](https://github.com/leobaiano/Post-Ranking-View)
page.

## 安装

To install just follow the installation steps of most WordPress plugin’s:

e.g.

 1. Download the file lb-back-to-top.zip;
 2. Unzip the file on your computer;
 3. Upload folder post-ranking-view, you just unzip to `/wp-content/plugins/` directory;
 4. Activate the plugin through the `Plugins` menu in WordPress;
 5. Be happy.

#### Showing the ranking of posts

To display a list of posts you have two options:

1 – Let the plugin generate the HTML

2 – Save an array with the data in a variable

#### Parameters of the function

    ```
    <?php
        displayRanking( $amount, $post_type, $category, $print, $thumb );

        $amount - Amount of posts to be displayed. Default = 5
        $post_type - Type of post that should be considered in the ranking, if not set all kind of posts will enter the ranking. Default = null
        $category - Category that should be considered in the ranking, if not set posts from all categories will enter the ranking. Default = null
        $print - Sets whether HTML is returned or an array with the posts ranking. Default = null ( display HTML )
        $thumb - Show thumbnail or not - true to display thumbnail, default false
    ?>
    ```

## 常见问题

  How do I change the look of the list of posts?

The plugin does not bring any CSS style for the list of posts, the visual follows
the style sheet theme, so to change the look just customize the CSS of the theme.

  How do I change the amount of posts being displayed in the rankings?

The first parameter of the function to set the number of posts by default 5 posts
will be listed, but if you want to change this value just set the value in the first
parameter. For example, if you want the 10 most viewed posts are displayed use the
following code to call the ranking:

    ```
    <?php
    if ( function_exists( 'displayRanking' ) ) {
    displayRanking(10);
    }
    ?>
    ```

  How to display the thumbnail of the post?

To show the thumbnail you need to set the parameter to true $ thumb, below an example
of displaying the ranking with thumbnail image:

    ```
    <?php
    if ( function_exists( 'displayRanking' ) ) {
    displayRanking( '', '', '', '', true );
    }
    ?>
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「Post Ranking View」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Leo Baiano ](https://profiles.wordpress.org/leobaiano/)

[帮助将「Post Ranking View」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-ranking-view)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/post-ranking-view/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/post-ranking-view/)，或通过[RSS](https://plugins.trac.wordpress.org/log/post-ranking-view/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/post-ranking-view/)。

## 更新日志

#### 1.1 2014-01-15

 * Including the option to show the post thumbnail

#### 1.0 2014-01-04

 * Creation of the plugin, the initial version.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-ranking-view/)
 * 标签
 * [popular](https://cn.wordpress.org/plugins/tags/popular/)[popular posts](https://cn.wordpress.org/plugins/tags/popular-posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-ranking-view/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/post-ranking-view/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/post-ranking-view/reviews/)

## 贡献者

 *   [ Leo Baiano ](https://profiles.wordpress.org/leobaiano/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/post-ranking-view/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://lbideias.com.br/donate)