{"id":24782,"date":"2013-08-17T08:46:53","date_gmt":"2013-08-17T08:46:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-share-count\/"},"modified":"2015-02-01T18:59:17","modified_gmt":"2015-02-01T18:59:17","slug":"post-share-count","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/post-share-count\/","author":12334118,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5.1","stable_tag":"trunk","tested":"3.6.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Post Share Count","header_author":"zviryatko","header_description":"","assets_banners_color":"ffffff","last_updated":"2015-02-01 18:59:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=sanya%2edavyskiba%40gmail%2ecom&lc=UA&item_name=MakeYouLiveBetter&item_number=post%2dshare%2dcount&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted","header_plugin_uri":"http:\/\/html-and-cms.com\/plugins\/post-share-count\/","header_author_uri":"http:\/\/makeyoulivebetter.org.ua\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3539,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.4":"<p>Add param <code>&amp;#039;show_only&amp;#039; =&amp;gt; array(&amp;#039;twitter&amp;#039;, &amp;#039;facebook&amp;#039;)<\/code> because now 5 counters available.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"759803","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[869,138,159],"plugin_category":[36,56],"plugin_contributors":[78415],"plugin_business_model":[],"class_list":["post-24782","plugin","type-plugin","status-publish","hentry","plugin_tags-counter","plugin_tags-share","plugin_tags-twitter","plugin_category-analytics","plugin_category-social-and-sharing","plugin_contributors-zviryatko","plugin_committers-zviryatko"],"banners":{"banner":"https:\/\/ps.w.org\/post-share-count\/assets\/banner-772x250.png?rev=759803","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-share-count_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Show twitter and facebook share count. Send your feature request.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>post-share-count.zip<\/code> and extract to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php the_post_share_count(); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to add html wrapper or some css class to counter and\/or display counter as link?<\/dt>\n<dd><p>Use array as argument with keys <code>before_<\/code> and <code>after_<\/code> prefix and social link name, here is example how to add @via parameter twitter sharing link:<\/p>\n\n<pre><code>&lt;?php\n$share_args = array(\n    'before_twitter' =&gt; '&lt;span class=\"share-link\"&gt;&lt;a href=\"https:\/\/twitter.com\/intent\/tweet?text=' . urlencode(get_the_title()) . '&amp;url=' . urlencode(get_permalink()) . '&amp;via=' . urlencode('your-twitter-name') . '\" rel=\"nofollow\" target=\"_blank\"&gt;&lt;span class=\"genericon genericon-twitter\"&gt;&lt;\/span&gt; ',\n    'after_twitter' =&gt; '&lt;\/a&gt;&lt;\/span&gt;',\n);\nthe_post_share_count( $share_args );\n?&gt;\n<\/code><\/pre>\n\n<p>Also you can add changes to <code>functions.php<\/code>:\n    function your_theme_post_share_count_services( $services ) {\n        $services['twitter']['before'] = '<a href=\"https:\/\/twitter.com\/intent\/tweet?text=%title%&amp;url=%url%&amp;via=' . urlencode('your-twitter-name') . '\" rel=\"nofollow\"> ';\n        return $services;\n    }\n    add_filter('post_share_count_services', 'your_theme_post_share_count_services');<\/a><\/p><\/dd>\n<dt>How to limit list of social networks? (or \"I want only twitter counter\")<\/dt>\n<dd><p>Add <code>show_only<\/code> parameter:\n     array( 'twitter', 'facebook' ));\n    the_post_share_count($args);\n    ?&gt;<\/p>\n\n<p>Also you can do it in <code>functions.php<\/code>:\n    function your_theme_post_share_count_services( $services ) {\n        unset( $services['facebook'] );\n        unset( $services['pinterest'] );\n        unset( $services['googleplus'] );\n        unset( $services['linkedin'] );\n        return $services;\n    }\n    add_filter('post_share_count_services', 'your_theme_post_share_count_services');<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.5<\/h4>\n\n<ul>\n<li>Fix pinterest counter<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Added LinkedIn counter<\/li>\n<li>Added genericon css classes for icon font support<\/li>\n<li>Added parameters <code>time<\/code> and <code>max_sync<\/code>, see <code>get_the_post_share_count()<\/code> function for details<\/li>\n<li>Change donate link to PayPal<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added facebook counter<\/li>\n<li>Changed <code>the_post_share_count<\/code> arguments, now one arg as array, see faq.<\/li>\n<\/ul>","raw_excerpt":"Show twitter and facebook share count.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/24782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=24782"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/zviryatko"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=24782"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=24782"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=24782"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=24782"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=24782"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=24782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}