Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Facebook Comment for Single Posts
/*** Facebook Comment for Single Posts ***/
add_action('genesis_before_comments', 'facebook_comments');
function facebook_comments() {
if (is_single()) { ?>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="3" data-width="600"></div>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.