Tara
Tara

Reputation: 1598

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

Upvotes: 1

Views: 1178

Answers (1)

Chris Carson
Chris Carson

Reputation: 1845

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".

Upvotes: 2

Related Questions