Title: Post Share Count
Author: zviryatko
Published: <strong>August 17, 2013</strong>
Last modified: February 1, 2015

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Post Share Count

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

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

 * [Details](https://wordpress.org/plugins/post-share-count/#description)
 * [Reviews](https://wordpress.org/plugins/post-share-count/#reviews)
 *  [Installation](https://wordpress.org/plugins/post-share-count/#installation)
 * [Development](https://wordpress.org/plugins/post-share-count/#developers)

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

## Description

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

## Installation

 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

## FAQ

  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’);

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Post Share Count” is open source software. The following people have contributed
to this plugin.

Contributors

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

[Translate “Post Share Count” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-share-count)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-share-count/),
check out the [SVN repository](https://plugins.svn.wordpress.org/post-share-count/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-share-count/)
by [RSS](https://plugins.trac.wordpress.org/log/post-share-count/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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.

## Meta

 *  Version **0.5.1**
 *  Last updated **11 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.0 or higher **
 *  Tested up to **3.6.1**
 * Tags
 * [Counter](https://wordpress.org/plugins/tags/counter/)[share](https://wordpress.org/plugins/tags/share/)
   [twitter](https://wordpress.org/plugins/tags/twitter/)
 *  [Advanced View](https://wordpress.org/plugins/post-share-count/advanced/)

## Ratings

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/post-share-count/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](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)