Adding Facebook "Like" Button to blog post
-
Hello,
I have tried adding a Facebook “Like” button to my blog posts by insterting this code into the single.php file:
<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px”></iframe>
However, it only adds the Like button to the permalink. How do I get the Like button to appear on all of the posts on my blog page?
Basically, I would like all 10 of the posts on my blog page to have the Facebook Like button visible on each post all at once, without having to go to the permalinks.
The topic ‘Adding Facebook "Like" Button to blog post’ is closed to new replies.