I've read every article that has the word single.php but I still can find the solution.
My issue is that I can't seem to add the code for the Facebook Like button:
Code: Select all
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=standard&show_faces=true&width=260&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:260px; height:px"></iframe>
So where would I add the code so that it will show up on each post, but only when the user clicks on the post? So for example, when you go to the main page, it'll lists all posts, but the user won't see the Facebook Like button until he clicks and views the individual post.
Any assistance is great appreciated.