Support » Fixing WordPress » Facebook like counter keeps on resetting

  • I have a facebook like counter below my posts and last night we had 26 likes on one post, and then suddenly we had none. Now it’s 17 likes and it keeps jumping back and forth.
    Seems like it resets when someone is posting a comment, but I’m not sure.

    This is the code i’m using on single.php.

    <div class="entry">
    <div id="sociallikes1">
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); = id;
      js.src = "//";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    					<div class="fb-like" data-send="true" data-layout="button_count" data-width="100" data-show-faces="false"></div>
    					<?php the_content(''); ?>
    					<?php link_pages('<br><p><strong>Sida:</strong> ', '</p>', 'number'); ?></div>

    Help is much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Facebook like counter keeps on resetting’ is closed to new replies.