开发者

FB Like Counter Not Showing Individual Results for Each Page

The code below is开发者_高级运维 placed in the header and called via php to every page of the website. (It's WordPress.)

The counter shows the like counts for the home page on every article. Any way to make it show the count for individual articles? (this is the site)

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1">

</script><fb:like href="http://GlamourUnderground.com" send="true" layout="box_count" width="55" show_faces="false" font="arial"></fb:like>
</div>

Thank you,

Tara


You have to put the permalink to the actual article in the <fb:like> tag, not just the home page.Try...

<fb:like 
     href="<?php the_permalink()?>" 
     send="true" 
     layout="box_count" 
     width="55" show_faces="false" font="arial"></fb:like>

This will work whenever you've called the_post(), e.g. on individual posts and pages and when you are in the "loop".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜