Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/humanmade/Social-Counts
Adds the # of times a post has been shared on major social networks as post meta.
https://github.com/humanmade/Social-Counts
Last synced: 3 months ago
JSON representation
Adds the # of times a post has been shared on major social networks as post meta.
- Host: GitHub
- URL: https://github.com/humanmade/Social-Counts
- Owner: humanmade
- Created: 2014-07-17T10:58:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T17:39:07.000Z (about 5 years ago)
- Last Synced: 2024-07-31T01:46:29.672Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 11
- Watchers: 22
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
HM Social Counts
================Adds the # of times a post has been shared on major social networks as post meta. It uses http://sharedcount.com/ and it's API.
**Please Note**: This plugin requires an account / API from http://sharedcount.com/ in order to work.
#Pull Requests Welcome
Let's make it a kick-ass plugin we can share with the worlds.## Installation
* Upload this directory to your '/wp-content/plugins/' directory, using your prefered method (ftp, sftp, etc.)
* Activate Social Counts from your plugins page in your WordPress Dashboard area.## Usage
Place the following code in your WordPress loop(s) to display the total number of shares:```php
get_total_shares();
}
```###Here's a list of networks currently supported from the SharedCount API:
- StumbleUpon
- Delicious
- Google+
- Buzz
- DiggIf you'd like to display the total count from a specific network you could add a network paramter to your template tag.
For example:
```php
get_total_shares( 'facebook' );
}
```