How to Add the Facebook Like Button to Your WordPress posts


Here is how to get the new facebook like button integrated into your wordpress blog

1. Go to : http://developers.facebook.com/docs/reference/plugins/like

2. Open up your theme editor and copy paste this next to the post title or under your content

<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&amp;layout=button_count&amp;show-faces=false&amp;width=200&amp;action=like&amp;colorscheme=light” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:200px; height:25px”></iframe>

Note: make sure its in the loop

Thats it! hope you like it!

Hot Trending Topics

  1. Create a “Send to Twitter” Button
  2. 8 Useful WordPress SQL Hacks
  3. List Your Scheduled Posts
  4. Avoid Duplicate Posts in Multiple Loops
  5. 14 Ways to Get your Facebook Page Stand out
You can leave a response, or trackback from your own site.

Comments