Twitter and Facebook Share Button Not Working (1 post)

  1. merohan
    Posted 5 years ago #

    I'm using following code in my wordpress blog. I can successful share my wordpress post on twitter and facebook but when I refresh my page count remain zero as before the retweet or share on facebook. Please guide me why number are not increasing? I don't want to use any plugin.

    <a name="fb_share" type="box_count" href="http://www.facebook.com/sharer.php?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>">Share</a>
    <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

    <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="abc" data-text="<?php the_title(); ?>" data-url="<?php the_permalink() ?>" >Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

Topic Closed

This topic has been closed to new replies.

About this Topic