Title: LinkedIn share button count
Last modified: August 30, 2016

---

# LinkedIn share button count

 *  Resolved [saneesk](https://wordpress.org/support/users/saneesk/)
 * (@saneesk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/)
 * linkedIn share count is not displaying.
    While sharing images of the post is 
   not displaying in the share post.
 * [https://wordpress.org/plugins/simple-share-buttons-adder/](https://wordpress.org/plugins/simple-share-buttons-adder/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [saneesk](https://wordpress.org/support/users/saneesk/)
 * (@saneesk)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/#post-6802670)
 * Twitter share count is not displaying.
 *  [mijncommunicatie](https://wordpress.org/support/users/mijncommunicatie/)
 * (@mijncommunicatie)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/#post-6802825)
 * Since the new update, the Twitter counter disappeared on my website as well. 
   Will this be possible to fix with a new update? Many thanks.
 *  [hossainshakil](https://wordpress.org/support/users/hossainshakil/)
 * (@hossainshakil)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/#post-6802826)
 * simple-share-buttons-adder/inc/ssba_buttons.php
    you will find this “ssba_linkedin”
   function // get linkedin button function ssba_linkedin($arrSettings, $urlCurrentPage,
   $strPageTitle, $booShowShareCount) {
 * / Here Some code
    } $htmlShareButtons .= ”; // ====================THis is new
   code for you ==================== if ($arrSettings[‘ssba_show_share_count’] =
   = ‘Y’ && $booShowShareCount == true) {$htmlShareButtons .= ‘<span class=”ssba_sharecount”
   >’ . getLinkedinShareCount($urlCurrentPage) . ‘</span>’;} //=================
   =================end ================= return $htmlShareButtons; }
 * Just i have solve it
 *  [hossainshakil](https://wordpress.org/support/users/hossainshakil/)
 * (@hossainshakil)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/#post-6802827)
 * sanees and mijncommunicatie
 * USE this on simple-share-buttons-adder/inc/ssba_buttons.php
    // get twitter button
   function ssba_twitter($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount){
   $twitterShareText = urlencode(html_entity_decode($strPageTitle . ‘ ‘ . $arrSettings[‘
   ssba_twitter_text’], ENT_COMPAT, ‘UTF-8’)); $htmlShareButtons = ‘[‘; if ($arrSettings[‘ssba_image_set’] != ‘custom’) { $htmlShareButtons .= ‘<img src=”‘ . plugins_url() . ‘/simple-share-buttons-adder/buttons/’ . $arrSettings[‘ssba_image_set’] . ‘/twitter.png” title=”Twitter” class=”ssba ssba-img” alt=”Tweet about this on Twitter” />’; } else { $htmlShareButtons .= ‘<img src=”‘ . $arrSettings[‘ssba_custom_twitter’] . ‘” title=”Twitter” class=”ssba ssba-img” alt=”Tweet about this on Twitter” />’; } $htmlShareButtons .= ‘‘; if ($arrSettings[‘ssba_show_share_count’] == ‘Y’ && $booShowShareCount == true) { $htmlShareButtons .= ‘<span class=”ssba_sharecount”>’ . getTwitterShareCount($urlCurrentPage) . ‘</span>’; } return $htmlShareButtons; } function getTwitterShareCount($urlCurrentPage) { $htmlTwitterShareDetails = wp_remote_get(‘[http://urls.api.twitter.com/1/urls/count.json?url=&#8217](http://urls.api.twitter.com/1/urls/count.json?url=&#8217);.$urlCurrentPage,
   array(‘timeout’ => 6)); if (is_wp_error($htmlTwitterShareDetails)) { return 0;}
   $arrTwitterShareDetails = json_decode($htmlTwitterShareDetails[‘body’], true);
   $intTwitterShareCount = $arrTwitterShareDetails[‘count’]; return ($intTwitterShareCount)?
   ssba_format_number($intTwitterShareCount) : ‘0’; }

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘LinkedIn share button count’ is closed to new replies.

 * ![](https://ps.w.org/simple-share-buttons-adder/assets/icon-256x256.png?rev=2661516)
 * [Simple Share Buttons Adder](https://wordpress.org/plugins/simple-share-buttons-adder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-share-buttons-adder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-share-buttons-adder/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-share-buttons-adder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-share-buttons-adder/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [hossainshakil](https://wordpress.org/support/users/hossainshakil/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/linkedin-share-button-count/#post-6802827)
 * Status: resolved