I'm using get-simple 3.1.2 and gs blog plugin 1.4.1 and want to add Facebook comments to the bottom of my blog posts. With another CMS which I used before this was very simple, I just put this code in the header of my website and on every page I want Facebook comments I enter the following script at the bottom and the Facebook comments for that blog article appears nicely.
With GS Blog I had the idea that it would even be more easy as I'm using the Advertising Code to enter the little script and found that you can request the get-simple URL by but it not seem to work and I'm very new to Get-Simple so what I'm doing wrong...?
Code:
<div id="fb-root"></div>
<script type="text/javascript">(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div>
Code:
<script language="javascript" type="text/javascript">
//<![CDATA[
document.write('<div class="fb-comments" data-href="'{article_url}'" num_posts="10" width="800"></div>');
//]]>
</script>
With GS Blog I had the idea that it would even be more easy as I'm using the Advertising Code to enter the little script and found that you can request the get-simple URL by
Code:
<?php get_page_url(); ?>