WordPress.org

Ready to get started?Download WordPress

Forums

SEO Facebook Comment
disabling Fb comments for specific page/post (1 post)

  1. Simon
    Member
    Posted 1 year ago #

    I add the following code to enable a custom field to disable fb comments for particular page/post.

    I think it can be very useful for many people:

    // Simon Weil - 14.10.2012 - if fb comments closed for current page/post return
    $field_status = get_post_custom_values("disable_seo_fb_comments");
    if ( isset($field_status[0]) && $field_status[0] === "true" )
    	return $comments;

    on line 407 in seofacebook.php (function FbComments).

    Thanks for a great plugin!
    Simon

    http://wordpress.org/extend/plugins/seo-facebook-comments/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic