Support » Themes and Templates » Facebook like button for each Single page.

  • Hey guys,

    On my website, I want to place a facebook like button at the bottom of each article in a similar fashon to Engadgets method.

    I attempted to use the like button generator found on facebook and this is the code they give me:

    <div id="fb-root"></div><script src=""></script><fb:like href="" send="true" width="450" show_faces="true" font="arial"></fb:like>

    As you can see, it only allows me to generate it for a single page. What code should i use for the code to automatically insert what ever the link to the current page the users is viewing?

Viewing 1 replies (of 1 total)
  • If this code is in the WordPress loop, change the href code from "" to "<?php the_permalink();?>" and it will put the link to the post instead.

Viewing 1 replies (of 1 total)
  • The topic ‘Facebook like button for each Single page.’ is closed to new replies.