Title: Posts Social Shares Count
Author: Bishoy.A
Published: <strong>September 6, 2014</strong>
Last modified: November 24, 2015

---

Search plugins

![](https://ps.w.org/posts-social-shares-count/assets/banner-772x250.png?rev=1271352)

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://ps.w.org/posts-social-shares-count/assets/icon-128x128.png?rev=1271352)

# Posts Social Shares Count

 By [Bishoy.A](https://profiles.wordpress.org/bishoya/)

[Download](https://downloads.wordpress.org/plugin/posts-social-shares-count.1.4.1.zip)

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

 [Support](https://wordpress.org/support/plugin/posts-social-shares-count/)

## Description

#### About

You can use this plugin to get the number of shares for a given post by ID.

#### How to use

To count for example how many times the post or page has been shared on Facebook
use the function echo pssc_facebook() in the loop or echo pssc_facebook( $post_id)
anywhere. This function will return the count integer for example 5 or 0.

Or you can use the shortcode [pssc_facebook] in the post you want to count shares
for or [pssc_facebook post_id=””] for a specific post by ID.

#### Available Shortcodes

 * [pssc_facebook]
 * [pssc_pinterest]
 * [pssc_linkedin]
 * [pssc_delicious]
 * [pssc_stumble]
 * [pssc_gplus]
 * [pssc_all]

#### Available Functions

 * pssc_facebook()
 * pssc_pinterest()
 * pssc_linkedin()
 * pssc_delicious()
 * pssc_stumble()
 * pssc_gplus()
 * pssc_all()

Note that PHP functions needs to be echoed.

#### Change Log

 * Version 1.4.1: Removed Twitter functions due Twitter’s disabling their count 
   API.
 * Version 1.4.0: Fixed some bugs and added Posts Social Shares Count to edit posts/
   pages/custom post types list view in admin (edit.php).
 * Version 1.3.1: Fixed a bug with caching.
 * Version 1.3: Added caching support and Added total shares count to post edit 
   page.
 * Version 1.2: Fixed a bug with functions without post ID usage.
 * Version 1.1: Fixed a bug with pssc_all shortcode

## Screenshots

 * [[
 * Shares count in admin edit post view
 * [[
 * Shares count in admin edit post/pages/post types list view

## Installation

 1. Go to your admin area and select Plugins -> Add new from the menu.
 2. Search for \”Posts Social Shares Count\”.
 3. Click install.
 4. Click activate.

## Reviews

![](https://secure.gravatar.com/avatar/2e52eab6165d9ecb27103fc29ba46fa9a147467ebe9c004c36a08bfd215f1a6b?
s=60&d=retro&r=g)

### 󠀁[Fix Facebook Counter](https://wordpress.org/support/topic/fix-facebook-counter/)󠁿

 [ollakalla](https://profiles.wordpress.org/ollakalla/) December 16, 2016

The Problem is that facebook change the json, and you can fix the problem by edit
this file wp-content/plugins/posts-social-shares-count/classes/share.count.php and
go to function pssc_facebook and change the code inside it with this code $json_string
= $this->file_get_contents_curl( 'https://graph.facebook.com/?id='.$this->url );
$json = json_decode( $json_string, true ); return isset( $json['share']['share_count'])?
intval( $json['share']['share_count']) : 0;

![](https://secure.gravatar.com/avatar/32b1c1c83b94abe4cc11252e9c07880d473a56a5d454bd6dfc2e666cb6db2240?
s=60&d=retro&r=g)

### 󠀁[not working anymore and…](https://wordpress.org/support/topic/not-working-anymore-and/)󠁿

 [guenstig-kochen.at](https://profiles.wordpress.org/guenstig-kochenat/) September
26, 2016

… slows down wordpress. had to deacitvate it. nothing more to say. google+ doesn’t
work, twitter doesn’t work anymore because of its api. now facebook is gone because
of api 2.7.

![](https://secure.gravatar.com/avatar/7a6134357de9184577d89d97f847c580735aa67805a0c2dda081889dd9f67776?
s=60&d=retro&r=g)

### 󠀁[Facebook is not working](https://wordpress.org/support/topic/facebook-is-not-working/)󠁿

 [3nions](https://profiles.wordpress.org/3nions/) September 3, 2016

Facebook API is not working. Please update it to graph-api

![](https://secure.gravatar.com/avatar/67c9ab71ad6ecb932f935d0a03c5d6ecc054bdeb98397b84eb3889e82f48ac6d?
s=60&d=retro&r=g)

### 󠀁[Nice useful plugin.](https://wordpress.org/support/topic/nice-useful-plugin-2/)󠁿

 [Ryan](https://profiles.wordpress.org/daobydesign/) September 3, 2016

Does what it says it will do. Had a small issue with cURL under a specific server
setup, but otherwise it works great!

![](https://secure.gravatar.com/avatar/34236b8aa7d3687389631fd542d5c13bc0fc0d623444af680d4c6fb72791abb6?
s=60&d=retro&r=g)

### 󠀁[Awesome work!](https://wordpress.org/support/topic/awesome-work-52/)󠁿

 [jeromeeee](https://profiles.wordpress.org/jeromeeee/) September 3, 2016

Was looking high and low for a total share counter with caching support, and this
plugin was definitely the most helpful!

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/posts-social-shares-count/reviews/)

## Contributors & Developers

“Posts Social Shares Count” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Bishoy.A ](https://profiles.wordpress.org/bishoya/)

[Translate “Posts Social Shares Count” into your language.](https://translate.wordpress.org/projects/wp-plugins/posts-social-shares-count)

### Interested in development?

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

## Changelog

#### 1.4.1

 * Bug fixes
 * Disabled Twitter functions because Twitter has disabled their count API. See 
   [this blog post](https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform)

#### 1.4.0

 * Added Posts Social Shares Count to edit posts/pages/custom post types list view
   in admin (edit.php).
 * Fixed PHP notices that displayed randomly.
 * Fixed Issue for users with PHP safe_mode or open_basedir set on.
 * Fixed Issue with Pinterest count to always 0.

#### 1.3.1

 * Fixed a bug with caching

#### 1.3

 * Added Caching support
 * Improved performance
 * Added total shares count to post edit page

#### 1.2

 * Fixed a bug with functions without post ID usage.

#### 1.1

 * Fixed a bug with [pssc_all] shortcode

#### 1.0

 * Initial Plugin Release

## Meta

 *  Version **1.4.1**
 *  Last updated **10 years ago**
 *  Active installations **400+**
 *  WordPress version ** 2.5.0 or higher **
 *  Tested up to **4.3.34**
 * Tags
 * [count](https://wordpress.org/plugins/tags/count/)[facebook](https://wordpress.org/plugins/tags/facebook/)
   [shares](https://wordpress.org/plugins/tags/shares/)[shortcodes](https://wordpress.org/plugins/tags/shortcodes/)
   [social](https://wordpress.org/plugins/tags/social/)
 *  [Advanced View](https://wordpress.org/plugins/posts-social-shares-count/advanced/)

## Ratings

 3.7 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/posts-social-shares-count/reviews/)

## Contributors

 *   [ Bishoy.A ](https://profiles.wordpress.org/bishoya/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/posts-social-shares-count/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://bishoy.me/donate)