[Resolved] Facebook LIKE button on home page posts
I recently added this code to my single.php template to bring up the Facebook LIKE button and counter:
<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=dark” scrolling=”yes” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:60px;”></iframe>
It worked great on the post pages (ex: http://www.rocktorch.com/2010/05/06/rachel-flotard-of-visqueen-carries-a-torch-for-dave-grohl/)
But the Like button does not appear on the posts that appear on my homepage (http://rocktorch.com)
Do I need to alter a separate template to make this button appear on homepage posts?
- The topic ‘[Resolved] Facebook LIKE button on home page posts’ is closed to new replies.