counts are 0
-
some counts are 0 while they are not, should something special be done:
e.g. tweets are 0 ; stumbleupon = 0 ; linkedin = 0 BUT facebook likes are okay.
my code:
$html = '<span id="socialbar">'; $sh = array ( array('st_fblike_hcount','fblike'), //array('st_facebook_hcount','facebook'), array('st_twitter_hcount','twitter'), array('st_linkedin_hcount','linkedin'), array('st_plusone_hcount','stumbleupon'), array('st_stumbleupon_hcount','stumbleupon'), array('st_sharethis_hcount','sharethis'), ); foreach($sh as $sh_key => $sh_value) { $html .= "<span class='" . $sh_value[0] . "' st_title='" . get_the_title() . "' st_url='" . get_permalink() . "' displayText='".$sh_value[1]."'></span>"; } $html .= "<script charset=\"utf-8\" type=\"text/javascript\">" . "var switchTo5x=true;</script>" . "<script charset=\"utf-8\" type=\"text/javascript\" src=\"https://w.sharethis.com/button/buttons.js\">" . "</script><script type=\"text/javascript\">" . "stLight.options({publisher:'bfbc2ef0-02bc-4755-bc9e-c2135666a476'});" . "var st_type='wordpress3.5.1';</script>"; $html .= '</span><br clear="all" />'; return $html;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘counts are 0’ is closed to new replies.