WordPress.org

Forums

Facebook Likes & Shares the Same (3 posts)

  1. DanMichel
    Member
    Posted 4 years ago #

    I have a specific reason why i need to manually add facebook likes and shares in single.php, but the issue is that it seems that the facebook like and share counts are the same in every post. any ideas?
    thanks in advance

    <span style="float:left;margin-right:5px;padding:0;margin-left:0;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1"></script></span>
    <span style="float:left;margin-right:5px;padding:0;margin-left:0;">    <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></span>
        <span style="float:left;margin-right:5px;padding:0;margin-left:0;"><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=button_count&show_faces=false&width=140&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:140; height:28px;"></iframe></span>
  2. DanMichel
    Member
    Posted 4 years ago #

    any ideas?

  3. DanMichel
    Member
    Posted 4 years ago #

    i tried everything to fix this

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags