• Hey guys,

    On my website, getyourgadgetsgoing.com 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="https://connect.facebook.net/en_US/all.js#appId=141369432604089&xfbml=1"></script><fb:like href="getyourgadetsgoing.com" 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 "getyourgadgetsgoing.com" 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.