• Resolved ecclescake

    (@ecclescake)


    Several months ago I updated a blog to use https instead of http, and I implemented code to preserve the share counts of the existing blog posts that had been shared hundreds of times when the site was using http. After the recent AddThis update, those share counts are gone. How can I override the share URL to get accurate share counts?

    This is the code I’ve been using, which used to work:

    <div class="addthis_sharing_toolbox" data-url="<?php echo do_shortcode('[http-url]'); ?>"></div>

    (The [http-url] shortcode returns the http URL of the post.)

    I’ve also tried using the old-style addthis:url method, as well as setting the addthis_share variable, per this page. None of these options work.

    I see that each post has an empty div with classes .at-above-post.addthis_tool, with a data-url attribute containing the https URL. I’ve disabled all sharing widgets via the plugin’s settings. Is this overriding my specified URL?

    Any hints? We really want the share counts back. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lost share counts’ is closed to new replies.