Hi,
After reading various threads here, I have successfully added the Facebook comments. For example. Have a look at this link: https://tomatoheart.com/aditi-singh/open-letter-to-friends-cast-indian-teen/
Right now it appears just after the end of the post (even before the share button) but I want it to appear before the “real WordPress comment section” and after the related post section. I have shown the desired location here .

where should I put the code to get it right? Currently the FB comment has been inserted in all the loop-single.php files like this:
<?php echo $td_mod_single->get_content();?>
<div class="fb">
<div class="fb-page" data-href="https://www.facebook.com/page" data-width="180" data-height="70" data-small-header="true" data-adapt-container-width="false" data-hide-cover="true" data-show-facepile="false">
</div>
<div class="fb-comments" data-href="<?php echo get_permalink($td_mod_single->post->ID); ?>" data-width="100%" data-numposts="10" data-order-by="social" data-colorscheme="light"></div> </div>
</div>
Please tell me the right location to get it after the related post section. Thank you.
PS: Do we need to modify any single.php etc. file too to get these results? ( Because under various threads I have seen the mentioning of single.php files too but in my case, I am able to get the FB comment section just by adding codes under loop-single.php files.
Hi,
You saw mentioning the single.php files because the comments are added in single.php not in the loop files. Most users do not want 2 comments sections so they was to remove the comments from single.php and then add them either replacing the code directly in single.php or in a custom location in the loop files. If you want to have both comments and place the fb ones after the related articles section, you can add the code here:
http://screencast.com/t/8YOaTt473
Thank you!
It worked. Thank you very much.
So by 2 comments sections means this : https://i.imgur.com/gVhQdvx.jpg . Right?
So, what should be done to have just one comment section ( Which probably mean replacing WordPress comments by Facebook comments) . What should I delete or add under single.php or from loop.single.php considering the fact that I have already these codes in loop-single.php?
Also, in my the current situation ( having 2 comment sections ), Is there any way to add, Facebook comments too under the “View comment counts” ?
Is not , will I get the Facebook comment counts when I replce WordPress comments section with Facebook comment plugin ?
Thank you.
Hi,
Yes it seems now you have WordPress and Facebook comments. in order to remove the wp comments, you can delete this part from the single.php files like so: http://screencast.com/t/XRC67VndpX
The comment count was only implemented for the default comments so it will not work with facebook comments unfortunately. You can disable the comment count from the theme panel.
Thanks.