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.

Post Share Count


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


  1. Upload 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:

$share_args = array(
    'before_twitter' => '<span class="share-link"><a href="' . 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’ ));

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


There are no reviews for this plugin.

Contributors & Developers

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


Translate “Post Share Count” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fix pinterest counter


  • 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


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