I searched for the solution and most of the results came from people who were using Really Simple SSL plugin. But I already have my SSL and I don’t see the need to install that just so I can get the solution I wanted.
But halleluiah! I found this: https://developer.wordpress.org/reference/functions/get_permalink/
The solution was just right there. So if you’re using Facebook comments and you’re on WordPress, simply use this code and you will see your old beloved comments back in your post:
<div class="fb-comments" data-href="<?php echo str_replace("https://yoursite.com/","http://yoursite.com/",get_permalink($post->ID)); ?>" data-numposts="10" data-width="500"></div>
I hope that works for your site because it sure does on mine.
What do you think?
It is nice to know your opinion. Leave a comment.