开发者

FB Like Counter Not Showing Individual Results for Each Page

开发者 https://www.devze.com 2023-03-27 12:20 出处:网络
The code below is开发者_高级运维 placed in the header and called via php to every page of the website. (It\'s WordPress.)

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

精彩评论

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