Facebook Comment for Single Posts
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
/*** 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