Adding Facebook Comments Plugin into Repeater Template, works on first post only
-
Hi Darren,
I am trying to add the Facebook Developer version of the Facebook Comments plugin into my site posts. It loads properly on the first post load, however on all previous posts it does not.
How can I fix the below Repeater Template so that the comments load on each previous post?
Thank you.
Best,
AdamHere is link to an example of a post working but previous posts not: https://www.addtojobcart.com/your-resume-is-your-first-interview-8-ways-to-crush-it/
<div>
<div class=”section”><article id=”post-<?php the_ID(); ?>” <?php post_class(‘post’); ?>><?php
the_post_thumbnail( ‘full’ );
BlogAndShop::title();
the_content(null, BlogAndShop::to(‘post/strip_teaser’));?>
</article><div class=”fb-comments” data-href=”https://www.addtojobcart.com” data-width=”900″ data-numposts=”5″></div>
<div id=”fb-root”></div>
<script>(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/sdk.js#xfbml=1&version=v2.5”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script><div>
<?php BlogAndShop::meta(); ?>
- The topic ‘Adding Facebook Comments Plugin into Repeater Template, works on first post only’ is closed to new replies.