Title: Post Share Count
Author: zviryatko
Published: <strong>2013 年 8 月 17 日</strong>
Last modified: 2015 年 2 月 1 日

---

搜索插件

![](https://ps.w.org/post-share-count/assets/banner-772x250.png?rev=759803)

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

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

# Post Share Count

 作者：[zviryatko](https://profiles.wordpress.org/zviryatko/)

[下载](https://downloads.wordpress.org/plugin/post-share-count.zip)

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

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

## 描述

Show twitter and facebook share count. Send your feature request.

## 安装

 1. Upload `post-share-count.zip` and extract to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place `<?php the_post_share_count(); ?>` in your templates

## 常见问题

  How to add html wrapper or some css class to counter and/or display counter as
link?

Use array as argument with keys `before_` and `after_` prefix and social link name,
here is example how to add @via parameter twitter sharing link:

    ```
    <?php
    $share_args = array(
        'before_twitter' => '<span class="share-link"><a href="https://twitter.com/intent/tweet?text=' . urlencode(get_the_title()) . '&url=' . urlencode(get_permalink()) . '&via=' . urlencode('your-twitter-name') . '" rel="nofollow" target="_blank"><span class="genericon genericon-twitter"></span> ',
        'after_twitter' => '</a></span>',
    );
    the_post_share_count( $share_args );
    ?>
    ```

Also you can add changes to `functions.php`:
 function your_theme_post_share_count_services(
$services ) { $services[‘twitter’][‘before’] = ‘[ ‘; return $services; } add_filter(‘
post_share_count_services’, ‘your_theme_post_share_count_services’);

  How to limit list of social networks? (or “I want only twitter counter”)

Add `show_only` parameter:
 array( ‘twitter’, ‘facebook’ )); the_post_share_count(
$args); ?>

Also you can do it in `functions.php`:
 function your_theme_post_share_count_services(
$services ) { unset( $services[‘facebook’] ); unset( $services[‘pinterest’] ); unset(
$services[‘googleplus’] ); unset( $services[‘linkedin’] ); return $services; } add_filter(‘
post_share_count_services’, ‘your_theme_post_share_count_services’);

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ zviryatko ](https://profiles.wordpress.org/zviryatko/)

[帮助将「Post Share Count」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-share-count)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.5

 * Fix pinterest counter

#### 0.4

 * Added LinkedIn counter
 * Added genericon css classes for icon font support
 * Added parameters `time` and `max_sync`, see `get_the_post_share_count()` function
   for details
 * Change donate link to PayPal

#### 0.2

 * Added facebook counter
 * Changed `the_post_share_count` arguments, now one arg as array, see faq.

## 额外信息

 *  版本 **0.5.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-share-count/)
 * 标签
 * [Counter](https://cn.wordpress.org/plugins/tags/counter/)[share](https://cn.wordpress.org/plugins/tags/share/)
   [twitter](https://cn.wordpress.org/plugins/tags/twitter/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-share-count/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/post-share-count/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/post-share-count/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/post-share-count/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/post-share-count/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/post-share-count/reviews/?filter=1)

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

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

## 贡献者

 *   [ zviryatko ](https://profiles.wordpress.org/zviryatko/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sanya%2edavyskiba%40gmail%2ecom&lc=UA&item_name=MakeYouLiveBetter&item_number=post%2dshare%2dcount&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)