How to add Facebook Like Button to WordPress Blog Posts

There are some plugins for WordPress that add Facebook Like button, however we can add this functionality manually by editing single.php file.

To do so, go to single.php file and find a place marked as .

Then insert this code, for example just bellow. < ?php the_content(' '); ?>

< iframe src="http://www.facebook.com/plugins/like.php?href=< ?php the_permalink() ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:450px; height:80px;” allowTransparency=”true”>