這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Posts Social Shares Count

描述

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

螢幕截圖

  • Shares count in admin edit post view
  • Shares count in admin edit post/pages/post types list view

安裝

  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.

評價

2016年12月16日
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;
2016年9月26日
... 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.
2016年9月3日
Does what it says it will do. Had a small issue with cURL under a specific server setup, but otherwise it works great!
2016年9月3日
Was looking high and low for a total share counter with caching support, and this plugin was definitely the most helpful!
閱讀全部7個評價

貢獻者及開發者

“Posts Social Shares Count” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Posts Social Shares Count 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.4.1

  • Bug fixes
  • Disabled Twitter functions because Twitter has disabled their count API. See this blog post

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