Skip to content

Instantly share code, notes, and snippets.

@anandkumar
Created November 21, 2012 16:14
Show Gist options
  • Save anandkumar/4125748 to your computer and use it in GitHub Desktop.
Save anandkumar/4125748 to your computer and use it in GitHub Desktop.
Facebook comments on Genesis Framework based theme
/*** Facebook Comment for Single Posts ***/
add_action('genesis_before_comments', 'facebook_comments');
/*** More info at www.blogsynthesis.com/?p=892 ***/
function facebook_comments() {
if (is_single()) { ?>
<div class="fb-comments" data-href="<?php the_permalink(); ?>" data-num-posts="5" data-width="600"></div>
<?php }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment