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)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/post-share-count/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/post-share-count/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/post-share-count/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.6.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/post-share-count/)
 * 標籤:
 * [Counter](https://tw.wordpress.org/plugins/tags/counter/)[share](https://tw.wordpress.org/plugins/tags/share/)
   [twitter](https://tw.wordpress.org/plugins/tags/twitter/)
 *  [進階檢視](https://tw.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)