Skip to content

Instantly share code, notes, and snippets.

@shemul49rmc
Last active December 29, 2015 10:38
Show Gist options
  • Save shemul49rmc/7657907 to your computer and use it in GitHub Desktop.
Save shemul49rmc/7657907 to your computer and use it in GitHub Desktop.
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