Last active
March 23, 2017 05:39
-
-
Save MrJSdev/7132c6da89353debd55ee2942e4f9157 to your computer and use it in GitHub Desktop.
facebook adding comment box code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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