简体   繁体   English

Twitter按钮计数不起作用,它始终显示0

[英]Twitter button count not work, it always displays 0

Script : 剧本:

<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>

code : 代码:

<?php
      $variable = '<a name="twitter_share" href="http://twitter.com/share" data-url="'.urlencode(get_permalink($post->ID)).'" data-counturl="'.urlencode(get_permalink($post->ID)).'" data-count="horizontal" class="twitter-share-button" >Tweet</a>';
?>

It tweets successfully but in my site page icon not count the number of tweet, it remains same value 0. 它成功发送了推文,但在我的网站页面图标中不计算推文的数量,它保持不变,值为0。

solution accepted, Thanks in Advance. 解决方案已接受,在此先感谢。

I find out this questions answer from here, 我从这里找出这个问题的答案,

twitter button 推特按钮

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM