>
Download This Plugin | |
Download Elegant Themes | |
Name | Tyme Social Count |
Version | 1.2 |
Author | Tyler Bailey |
Rating | 0 |
Last updated | 2015-02-11 05:13:00 |
Downloads |
54
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Tyme Social Count plugin added 3 bytes of resources to the Home page and 5 bytes of resources to the sample Post page.
Tyme Social Count plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Tyme Social Count plugin ads no tables to your Wordpress blog database.This plugin will query the popular social network APIs and retrieve the number of shares/likes/plusones from each. All shares are added up and calculated together to give you the total number of shares. All that is returned is a simple number. This number represents the number of shares, likes, tweets, +1's, and pins.
The plugin can be utilized two ways, the first method is the AJAX route which will require you to add a little javascript to your template. This method is the preferred method if you are requesting the share count for multiple posts on one page load. For example on an archive page. Below is a quick example of how that is done:
jQuery.get(ajaxurl, { action: "get_total_shares", url: "<?php the_permalink(); ?>" }).done(function(data) {
var shareNum = parseInt(data); // your total number of shares
});
Note: You can call this AJAX anyway you wish, but you must pass the_permalink();
as the url
parameter and "get_total_shares"
for the action
parameter.
If you are just displaying the share count for one post at a time, you may use the plugin shortcode to return the number. That shortcode is [tyme_share_count]
This plugin also refreshes the Facebook Open Graph scraper each time a post is published. This ensures the proper images and content are being served to Facebook when shared.