• Hi there everyone,

    I am running a website that acts as a silo architecture. To briefly explain the way it is set up, here’s an example:

    --------------------------------Main website---------------------------
          Category 1                 Category 2               Category 3
       Post1|Post2|Post3          Post1|Post2|Post3       Post1|Post2|Post3

    The problem I am having is that when a user likes or tweets those individual posts, the count does not dynamically keep count for the main posts (The main post in this situation is “Post1”)

    What I would like to do is have my tweet and like box keep count of from Post1.

    For instance, if a user likes Post2 or Post3, that count will go towards Post1.

    How can I include that into my Likes/Tweet script?

    This is my current script for Facebook and Twitter,

    Twitter:

    <a href="https://twitter.com/share" class="twitter-share-button" data-text="Check this out!">Tweet</a>
    
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

    Facebook:

    <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); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <div class="fb-like" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div>

    Thank you so much for anyone trying to help me out! 🙂

The topic ‘Keeping social counts the same’ is closed to new replies.