• I am using this plugin for one of our custom post types, it’s a daily reading we have for our users. But, I don’t want this plugin enabled for our blog posts. I’ve been on a few websites all using this function:

    add_filter( 'comments_template' , 'wpb_block_disqus', 1 );
    function wpb_block_disqus($file) {
    if ( 'post' == get_post_type() )
    remove_filter('comments_template', 'dsq_comments_template');
    return $file;
     
    }
    

    But it doesn’t seem to work any more? Any idea how we can achieve this?

    Thank you!

  • The topic ‘Function to Disable for ‘Posts’’ is closed to new replies.