I'm trying to use the Facebook plugins on comment, but I do not want to have to change the code on each page just because of the link. Can you do a function that takes the link automatically and assigns a variable to put this variable in data-href
in the code below?
<div class="fb-comments" data-href="http://developers.facebook.com/docs/plugins/comments/" data-numposts="5" data-colorscheme="light"></div>