WordPress.org

Ready to get started?Download WordPress

Forums

  1. cogmios
    Member
    Posted 1 year ago #

    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=\"http://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;
  2. cogmios
    Member
    Posted 1 year ago #

    Im using/testing it on http://populair.eu , I have activated JetPack to show the counts (which does show the correct counts):

    at the top you see sharethis and at the bottom jetpack.

    e.g: stumbleupon, tweet and linkedin show 0 in sharethis.

  3. cogmios
    Member
    Posted 1 year ago #

    echo

  4. sharethissupport
    Member
    Posted 1 year ago #

    Hello,
    Apologies for the delayed response.

    ShareThis buttons show the count of number of times that button was used to share the page. So, the count on ShareThis button can be different from the count on Sharing buttons of other social plug-in.

    Hope this clarifies the behaviour of counts on ShareThis buttons. For information related to native counts, you can refer our FAQs page -
    https://support.sharethis.com/customer/portal/articles/517333-analytics-faqs#counts

    [ Per forum rules signature moderated. Please stop including that with every posts. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic