Skip to content

Instantly share code, notes, and snippets.

@MrJSdev
Last active March 23, 2017 05:39
Show Gist options
  • Save MrJSdev/7132c6da89353debd55ee2942e4f9157 to your computer and use it in GitHub Desktop.
Save MrJSdev/7132c6da89353debd55ee2942e4f9157 to your computer and use it in GitHub Desktop.
facebook adding comment box code
<?php
/**
* Facebook Comments
* @link http://extracatchy.net/add-facebook-comments-in-wordpress/
*/
function extracatchy_facebook_comments() {
echo '<h2>Submit a Comment</h2>';
echo '<div class="fb-comments" data-href="' . get_permalink() . '" data-numposts="5" data-width="100%"></div>';
}
add_action( 'genesis_after_entry', 'extracatchy_facebook_comments' );
remove_action( 'genesis_after_entry', 'genesis_get_comments_template' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment